mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 21:53:52 +00:00
Display <none> for "kubectl get pods -o wide" when node is empty.
This commit is contained in:
@@ -345,6 +345,9 @@ func printPodBase(pod *api.Pod, w io.Writer, options printers.PrintOptions) erro
|
||||
if podIP == "" {
|
||||
podIP = "<none>"
|
||||
}
|
||||
if nodeName == "" {
|
||||
nodeName = "<none>"
|
||||
}
|
||||
if _, err := fmt.Fprintf(w, "\t%s\t%s",
|
||||
podIP,
|
||||
nodeName,
|
||||
|
Reference in New Issue
Block a user