Replace NodeLegacyHostIP with NodeInternalIP

This commit is contained in:
Manuel de Brito Fontes 2017-05-20 20:11:58 -04:00
parent 9ddf98769a
commit b1d6468d5d
3 changed files with 11 additions and 11 deletions

View file

@ -94,7 +94,7 @@ func GetNodeIP(kubeClient clientset.Interface, name string) string {
}
}
if externalIP == "" && address.Type == api.NodeLegacyHostIP {
if externalIP == "" && address.Type == api.NodeInternalIP {
externalIP = address.Address
}
}