mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-04 02:37:36 +00:00
Merge pull request #17434 from gmarek/internal_ips
Auto commit by PR queue bot
This commit is contained in:
@@ -138,11 +138,16 @@ var _ = Describe("Density", func() {
|
|||||||
|
|
||||||
Logf("Listing nodes for easy debugging:\n")
|
Logf("Listing nodes for easy debugging:\n")
|
||||||
for _, node := range nodes.Items {
|
for _, node := range nodes.Items {
|
||||||
|
var internalIP, externalIP string
|
||||||
for _, address := range node.Status.Addresses {
|
for _, address := range node.Status.Addresses {
|
||||||
if address.Type == api.NodeInternalIP {
|
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)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user