@@ -48,7 +48,6 @@ import (
48
48
"k8s.io/kubernetes/cmd/kubeadm/app/util/system"
49
49
kubeadmversion "k8s.io/kubernetes/cmd/kubeadm/app/version"
50
50
"k8s.io/kubernetes/pkg/registry/core/service/ipallocator"
51
- ipvsutil "k8s.io/kubernetes/pkg/util/ipvs"
52
51
utilsexec "k8s.io/utils/exec"
53
52
utilsnet "k8s.io/utils/net"
54
53
)
@@ -867,20 +866,10 @@ func (ncc NumCPUCheck) Check() (warnings, errorList []error) {
867
866
return warnings , errorList
868
867
}
869
868
870
- // IPVSProxierCheck tests if IPVS proxier can be used.
871
- type IPVSProxierCheck struct {
872
- exec utilsexec.Interface
873
- }
874
-
875
- // Name returns label for IPVSProxierCheck
876
- func (r IPVSProxierCheck ) Name () string {
877
- return "IPVSProxierCheck"
878
- }
879
-
880
869
// RunInitNodeChecks executes all individual, applicable to control-plane node checks.
881
870
// The boolean flag 'isSecondaryControlPlane' controls whether we are running checks in a --join-control-plane scenario.
882
871
// The boolean flag 'downloadCerts' controls whether we should skip checks on certificates because we are downloading them.
883
- // If the flag is set to true we should skip checks already executed by RunJoinNodeChecks and RunOptionalJoinNodeChecks .
872
+ // If the flag is set to true we should skip checks already executed by RunJoinNodeChecks.
884
873
func RunInitNodeChecks (execer utilsexec.Interface , cfg * kubeadmapi.InitConfiguration , ignorePreflightErrors sets.String , isSecondaryControlPlane bool , downloadCerts bool ) error {
885
874
if ! isSecondaryControlPlane {
886
875
// First, check if we're root separately from the other preflight checks and fail fast
@@ -913,11 +902,6 @@ func RunInitNodeChecks(execer utilsexec.Interface, cfg *kubeadmapi.InitConfigura
913
902
if ! isSecondaryControlPlane {
914
903
checks = addCommonChecks (execer , cfg .KubernetesVersion , & cfg .NodeRegistration , checks )
915
904
916
- // Check if IVPS kube-proxy mode is supported
917
- if cfg .ComponentConfigs .KubeProxy != nil && cfg .ComponentConfigs .KubeProxy .Mode == ipvsutil .IPVSProxyMode {
918
- checks = append (checks , IPVSProxierCheck {exec : execer })
919
- }
920
-
921
905
// Check if Bridge-netfilter and IPv6 relevant flags are set
922
906
if ip := net .ParseIP (cfg .LocalAPIEndpoint .AdvertiseAddress ); ip != nil {
923
907
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