hierarchical-namespaces icon indicating copy to clipboard operation
hierarchical-namespaces copied to clipboard

hns CLI: describe command should also describe allowCascadingDeletion property

Open manjinder-mckc opened this issue 1 year ago • 4 comments

Current Output:

$ kubectl hns describe boss                             
Hierarchy configuration for namespace boss
  Parent:  bigboss
  Children:
  - workers (subnamespace)
  No conditions

Expected Output:

$ kubectl hns describe boss                             
Hierarchy configuration for namespace boss
  Parent:  bigboss
  Children:
  - workers (subnamespace)
  AllowCascadingDeletion: true
  No conditions

Proposing Changes here: https://github.com/kubernetes-sigs/hierarchical-namespaces/blob/564b4a968ca2091f27cf0eb51d0cd99190e57db5/internal/kubectl/describe.go#L33-L83

Would be willing to raise a PR, if you guys agree that this makes sense.

manjinder-mckc avatar Jul 21 '23 09:07 manjinder-mckc