mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 04:52:08 +00:00
Merge pull request #9650 from hurf/podns_describe_node
display pod namespace while describe node
This commit is contained in:
commit
c6a910c0b8
@ -809,8 +809,9 @@ func describeNode(node *api.Node, pods []*api.Pod, events *api.EventList) (strin
|
||||
fmt.Fprintf(out, "ExternalID:\t%s\n", node.Spec.ExternalID)
|
||||
}
|
||||
fmt.Fprintf(out, "Pods:\t(%d in total)\n", len(pods))
|
||||
fmt.Fprint(out, " Namespace\tName\n")
|
||||
for _, pod := range pods {
|
||||
fmt.Fprintf(out, " %s\n", pod.Name)
|
||||
fmt.Fprintf(out, " %s\t%s\n", pod.Namespace, pod.Name)
|
||||
}
|
||||
if events != nil {
|
||||
DescribeEvents(events, out)
|
||||
|
Loading…
Reference in New Issue
Block a user