mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Merge pull request #3370 from dchen1107/clean
Print PodIP along with Pod.Name for kubectl get pod <id>
This commit is contained in:
commit
e930aa33ac
@ -240,8 +240,9 @@ func printPod(pod *api.Pod, w io.Writer) error {
|
||||
if len(containers) > 0 {
|
||||
firstContainer, containers = containers[0], containers[1:]
|
||||
}
|
||||
_, err := fmt.Fprintf(w, "%s\t%s\t%s\t%s\t%s\t%s\n",
|
||||
_, err := fmt.Fprintf(w, "%s/%s\t%s\t%s\t%s\t%s\t%s\n",
|
||||
pod.Name,
|
||||
pod.Status.PodIP,
|
||||
firstContainer.Name,
|
||||
firstContainer.Image,
|
||||
podHostString(pod.Status.Host, pod.Status.HostIP),
|
||||
|
Loading…
Reference in New Issue
Block a user