remove deprecated NodeLegacyHostIP

This commit is contained in:
NickrenREN
2017-04-24 10:21:29 +08:00
parent 35159f9c45
commit 7d00e5cfb6
21 changed files with 31 additions and 88 deletions

View File

@@ -476,10 +476,7 @@ func (config *NetworkingTestConfig) setup(selector map[string]string) {
ExpectNoError(WaitForAllNodesSchedulable(config.f.ClientSet, 10*time.Minute))
nodeList := GetReadySchedulableNodesOrDie(config.f.ClientSet)
config.ExternalAddrs = NodeAddresses(nodeList, v1.NodeExternalIP)
if len(config.ExternalAddrs) < 2 {
// fall back to legacy IPs
config.ExternalAddrs = NodeAddresses(nodeList, v1.NodeLegacyHostIP)
}
SkipUnlessNodeCountIsAtLeast(2)
config.Nodes = nodeList.Items