Merge pull request #81696 from tedyu/kubeadm-ipv6

Remove check for addIPv6Checks which evaluates to true
This commit is contained in:
Kubernetes Prow Robot 2019-08-22 22:04:13 -07:00 committed by GitHub
commit 9873f0bfe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -984,11 +984,9 @@ func RunJoinNodeChecks(execer utilsexec.Interface, cfg *kubeadmapi.JoinConfigura
checks = append(checks,
HTTPProxyCheck{Proto: "https", Host: ipstr},
)
if !addIPv6Checks {
if ip := net.ParseIP(ipstr); ip != nil {
if utilsnet.IsIPv6(ip) {
addIPv6Checks = true
}
if ip := net.ParseIP(ipstr); ip != nil {
if utilsnet.IsIPv6(ip) {
addIPv6Checks = true
}
}
}