Skip to content

Commit

Permalink
improving protections/schedules output and deletion
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Haigh <mhaigh@netapp.com>
  • Loading branch information
MichaelHaigh committed Apr 23, 2024
1 parent e3e9e06 commit 15b2e9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions astraSDK/k8s.py
Expand Up @@ -243,6 +243,7 @@ def getTableInfo(self, plural, headers=False):
"dayOfMonth",
"snapRetention",
"backupRetention",
"appVaultRef",
]
return [
"spec.applicationRef",
Expand All @@ -254,6 +255,7 @@ def getTableInfo(self, plural, headers=False):
"spec.dayOfMonth",
"spec.snapshotRetention",
"spec.backupRetention",
"spec.appVaultRef",
]
elif plural == "snapshots":
if headers:
Expand Down
4 changes: 3 additions & 1 deletion tkSrc/choices.py
Expand Up @@ -375,7 +375,9 @@ def main(argv, verbs, verbPosition, ard, acl, v3, v3_skip_tls_verify=False):
acl.apps = ard.buildList("apps", "id")
ard.hooks = astraSDK.hooks.getHooks().main()
acl.hooks = ard.buildList("hooks", "id", fKey="appID", fVal=argv[verbPosition + 2])
elif argv[verbPosition + 1] == "protection" and len(argv) - verbPosition >= 3:
elif (
argv[verbPosition + 1] == "protection" or argv[verbPosition + 1] == "schedule"
) and len(argv) - verbPosition >= 3:
if v3:
ard.apps = astraSDK.k8s.getResources(
config_context=v3, skip_tls_verify=v3_skip_tls_verify
Expand Down

0 comments on commit 15b2e9b

Please sign in to comment.