@@ -49,7 +49,6 @@ import (
49
49
"k8s.io/kubernetes/cmd/kubeadm/app/util/system"
50
50
kubeadmversion "k8s.io/kubernetes/cmd/kubeadm/app/version"
51
51
"k8s.io/kubernetes/pkg/registry/core/service/ipallocator"
52
- ipvsutil "k8s.io/kubernetes/pkg/util/ipvs"
53
52
utilsexec "k8s.io/utils/exec"
54
53
utilsnet "k8s.io/utils/net"
55
54
)
@@ -865,20 +864,10 @@ func (ncc NumCPUCheck) Check() (warnings, errorList []error) {
865
864
return warnings , errorList
866
865
}
867
866
868
- // IPVSProxierCheck tests if IPVS proxier can be used.
869
- type IPVSProxierCheck struct {
870
- exec utilsexec.Interface
871
- }
872
-
873
- // Name returns label for IPVSProxierCheck
874
- func (r IPVSProxierCheck ) Name () string {
875
- return "IPVSProxierCheck"
876
- }
877
-
878
867
// RunInitNodeChecks executes all individual, applicable to control-plane node checks.
879
868
// The boolean flag 'isSecondaryControlPlane' controls whether we are running checks in a --join-control-plane scenario.
880
869
// The boolean flag 'downloadCerts' controls whether we should skip checks on certificates because we are downloading them.
881
- // If the flag is set to true we should skip checks already executed by RunJoinNodeChecks and RunOptionalJoinNodeChecks .
870
+ // If the flag is set to true we should skip checks already executed by RunJoinNodeChecks.
882
871
func RunInitNodeChecks (execer utilsexec.Interface , cfg * kubeadmapi.InitConfiguration , ignorePreflightErrors sets.String , isSecondaryControlPlane bool , downloadCerts bool ) error {
883
872
if ! isSecondaryControlPlane {
884
873
// First, check if we're root separately from the other preflight checks and fail fast
@@ -911,11 +900,6 @@ func RunInitNodeChecks(execer utilsexec.Interface, cfg *kubeadmapi.InitConfigura
911
900
if ! isSecondaryControlPlane {
912
901
checks = addCommonChecks (execer , cfg .KubernetesVersion , & cfg .NodeRegistration , checks )
913
902
914
- // Check if IVPS kube-proxy mode is supported
915
- if cfg .ComponentConfigs .KubeProxy != nil && cfg .ComponentConfigs .KubeProxy .Mode == ipvsutil .IPVSProxyMode {
916
- checks = append (checks , IPVSProxierCheck {exec : execer })
917
- }
918
-
919
903
// Check if Bridge-netfilter and IPv6 relevant flags are set
920
904
if ip := net .ParseIP (cfg .LocalAPIEndpoint .AdvertiseAddress ); ip != nil {
921
905
if utilsnet .IsIPv6 (ip ) {
@@ -1001,18 +985,6 @@ func RunJoinNodeChecks(execer utilsexec.Interface, cfg *kubeadmapi.JoinConfigura
1001
985
return RunChecks (checks , os .Stderr , ignorePreflightErrors )
1002
986
}
1003
987
1004
- // RunOptionalJoinNodeChecks executes all individual, applicable to node configuration dependant checks
1005
- func RunOptionalJoinNodeChecks (execer utilsexec.Interface , cfg * kubeadmapi.ClusterConfiguration , ignorePreflightErrors sets.String ) error {
1006
- checks := []Checker {}
1007
-
1008
- // Check if IPVS kube-proxy mode is supported
1009
- if cfg .ComponentConfigs .KubeProxy != nil && cfg .ComponentConfigs .KubeProxy .Mode == ipvsutil .IPVSProxyMode {
1010
- checks = append (checks , IPVSProxierCheck {exec : execer })
1011
- }
1012
-
1013
- return RunChecks (checks , os .Stderr , ignorePreflightErrors )
1014
- }
1015
-
1016
988
// addCommonChecks is a helper function to duplicate checks that are common between both the
1017
989
// kubeadm init and join commands
1018
990
func addCommonChecks (execer utilsexec.Interface , k8sVersion string , nodeReg * kubeadmapi.NodeRegistrationOptions , checks []Checker ) []Checker {
0 commit comments