Merge pull request #17434 from gmarek/internal_ips

Auto commit by PR queue bot
This commit is contained in:
k8s-merge-robot
2015-11-19 08:17:23 -08:00

View File

@@ -138,11 +138,16 @@ var _ = Describe("Density", func() {
Logf("Listing nodes for easy debugging:\n")
for _, node := range nodes.Items {
var internalIP, externalIP string
for _, address := range node.Status.Addresses {
if address.Type == api.NodeInternalIP {
Logf("Name: %v IP: %v", node.ObjectMeta.Name, address.Address)
internalIP = address.Address
}
if address.Type == api.NodeExternalIP {
externalIP = address.Address
}
}
Logf("Name: %v, clusterIP: %v, externalIP: %v", node.ObjectMeta.Name, internalIP, externalIP)
}
})