mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #163 from brendandburns/cloudcfg
Add IP to hostname in cloudcfg printing.
This commit is contained in:
commit
e2974a0a75
@ -99,7 +99,7 @@ func (h *HumanReadablePrinter) makeLabelsList(labels map[string]string) string {
|
|||||||
|
|
||||||
func (h *HumanReadablePrinter) printPod(pod api.Pod, w io.Writer) error {
|
func (h *HumanReadablePrinter) printPod(pod api.Pod, w io.Writer) error {
|
||||||
_, err := fmt.Fprintf(w, "%s\t%s\t%s\t%s\n",
|
_, err := fmt.Fprintf(w, "%s\t%s\t%s\t%s\n",
|
||||||
pod.ID, h.makeImageList(pod.DesiredState.Manifest), pod.CurrentState.Host, h.makeLabelsList(pod.Labels))
|
pod.ID, h.makeImageList(pod.DesiredState.Manifest), pod.CurrentState.Host+"/"+pod.CurrentState.HostIP, h.makeLabelsList(pod.Labels))
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user