mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Merge pull request #114584 from soltysh/describe_cr
Skip .metadata.manageFields when describing unkown resources
This commit is contained in:
commit
eb34f69562
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user