From 4639ced63042c822f192ec28632c2890ef126cb9 Mon Sep 17 00:00:00 2001 From: Ted Yu Date: Tue, 20 Aug 2019 19:02:27 -0700 Subject: [PATCH] Remove check for addIPv6Checks which evaluates to true --- cmd/kubeadm/app/preflight/checks.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cmd/kubeadm/app/preflight/checks.go b/cmd/kubeadm/app/preflight/checks.go index f1b6071e76c..3fe62d2b208 100644 --- a/cmd/kubeadm/app/preflight/checks.go +++ b/cmd/kubeadm/app/preflight/checks.go @@ -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 } } }