File tree 1 file changed +4
-3
lines changed
pkg/oc/bootstrap/docker/openshift
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -887,6 +887,9 @@ func (h *Helper) updateConfig(configDir string, opt *StartOptions) error {
887
887
nodeCfg .DNSIP = ""
888
888
}
889
889
nodeCfg .DNSBindAddress = ""
890
+ if nodeCfg .KubeletArguments == nil {
891
+ nodeCfg .KubeletArguments = configapi.ExtendedArguments {}
892
+ }
890
893
891
894
if h .supportsCgroupDriver () {
892
895
// Set the cgroup driver from the current docker
@@ -895,11 +898,9 @@ func (h *Helper) updateConfig(configDir string, opt *StartOptions) error {
895
898
return err
896
899
}
897
900
glog .V (5 ).Infof ("cgroup driver from Docker: %s" , cgroupDriver )
898
- if nodeCfg .KubeletArguments == nil {
899
- nodeCfg .KubeletArguments = configapi.ExtendedArguments {}
900
- }
901
901
nodeCfg .KubeletArguments ["cgroup-driver" ] = []string {cgroupDriver }
902
902
}
903
+ nodeCfg .KubeletArguments ["fail-swap-on" ] = []string {"false" }
903
904
904
905
cfgBytes , err = configapilatest .WriteYAML (nodeCfg )
905
906
if err != nil {
You can’t perform that action at this time.
0 commit comments