Skip .metadata.manageFields when describing unkown resources

This commit is contained in:
Maciej Szulik 2022-12-19 17:31:30 +01:00
parent a864583905
commit 8e3e3479d9
No known key found for this signature in database
GPG Key ID: F15E55D276FA84C4

View File

@ -295,7 +295,8 @@ func (g *genericDescriber) Describe(namespace, name string, describerSettings De
w.Write(LEVEL_0, "Namespace:\t%s\n", obj.GetNamespace())
printLabelsMultiline(w, "Labels", obj.GetLabels())
printAnnotationsMultiline(w, "Annotations", obj.GetAnnotations())
printUnstructuredContent(w, LEVEL_0, obj.UnstructuredContent(), "", ".metadata.name", ".metadata.namespace", ".metadata.labels", ".metadata.annotations")
printUnstructuredContent(w, LEVEL_0, obj.UnstructuredContent(), "", ".metadata.managedFields", ".metadata.name",
".metadata.namespace", ".metadata.labels", ".metadata.annotations")
if events != nil {
DescribeEvents(events, w)
}