Commit 9377a4bf authored by Dan Winship's avatar Dan Winship

Update some tests to fall back to InternalIP if ExternalIP isn't set

parent a9afb931
...@@ -307,6 +307,10 @@ func GetNodePublicIps(c clientset.Interface) ([]string, error) { ...@@ -307,6 +307,10 @@ func GetNodePublicIps(c clientset.Interface) ([]string, error) {
nodes := GetReadySchedulableNodesOrDie(c) nodes := GetReadySchedulableNodesOrDie(c)
ips := CollectAddresses(nodes, v1.NodeExternalIP) ips := CollectAddresses(nodes, v1.NodeExternalIP)
if len(ips) == 0 {
// If ExternalIP isn't set, assume the test programs can reach the InternalIP
ips = CollectAddresses(nodes, v1.NodeInternalIP)
}
return ips, nil return ips, nil
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment