add cli for create/view restore resource policies (#9966)

Added CLI for creating restore resource policies, and view
the resource policies associated with resource if present.
Only list the name of the configmap for now.

Signed-off-by: Adam Zhang <adam.zhang@broadcom.com>
This commit is contained in:
Adam Zhang
2026-07-09 22:56:56 -04:00
committed by GitHub
parent d2342532f4
commit c1cd00ff07
4 changed files with 66 additions and 1 deletions
+5
View File
@@ -219,6 +219,11 @@ func DescribeRestore(
DescribeResourceModifier(d, restore.Spec.ResourceModifier)
}
if restore.Spec.ResourcePolicy != nil {
d.Println()
DescribeResourcePolicies(d, restore.Spec.ResourcePolicy)
}
describeUploaderConfigForRestore(d, restore.Spec)
d.Println()