Skip to content

Commit

Permalink
renaming function for better alignment with ns-scoped resources
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Haigh <[email protected]>
  • Loading branch information
MichaelHaigh committed Dec 15, 2023
1 parent 86fa619 commit 8023a83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion astraSDK/k8s.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from .common import KubeCommon, SDKCommon


class getResources(KubeCommon):
class getClusterResources(KubeCommon):
def __init__(self, quiet=True, output="json"):
"""quiet: Will there be CLI output or just return (datastructure)
output: json: (default) output in JSON
Expand Down
4 changes: 1 addition & 3 deletions tkSrc/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,7 @@ def deployHelm(chart, appName, namespace, setValues, fileValues, verbose, quiet)
def main(args, parser, ard):
if args.objectType == "acp":
# Ensure the trident orchestrator is already running
torc = astraSDK.k8s.getResources().main(
"tridentorchestrators", version="v1", group="trident.netapp.io"
)
torc = astraSDK.k8s.getClusterResources().main("tridentorchestrators")
if torc is None or len(torc["items"]) == 0:
parser.error("trident operator not found on current Kubernetes context")
elif len(torc["items"]) > 1:
Expand Down

0 comments on commit 8023a83

Please sign in to comment.