mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +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 == "" {
 | 
							if podIP == "" {
 | 
				
			||||||
			podIP = "<none>"
 | 
								podIP = "<none>"
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
							if nodeName == "" {
 | 
				
			||||||
 | 
								nodeName = "<none>"
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
		if _, err := fmt.Fprintf(w, "\t%s\t%s",
 | 
							if _, err := fmt.Fprintf(w, "\t%s\t%s",
 | 
				
			||||||
			podIP,
 | 
								podIP,
 | 
				
			||||||
			nodeName,
 | 
								nodeName,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user