Skip to content

Commit

Permalink
Revert "set fail-swap-on to false for cluster up"
Browse files Browse the repository at this point in the history
This reverts commit d8265d0.
  • Loading branch information
liggitt committed Nov 21, 2017
1 parent d58d79f commit 5bb0613
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/oc/bootstrap/docker/openshift/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -887,9 +887,6 @@ func (h *Helper) updateConfig(configDir string, opt *StartOptions) error {
nodeCfg.DNSIP = ""
}
nodeCfg.DNSBindAddress = ""
if nodeCfg.KubeletArguments == nil {
nodeCfg.KubeletArguments = configapi.ExtendedArguments{}
}

if h.supportsCgroupDriver() {
// Set the cgroup driver from the current docker
Expand All @@ -898,9 +895,11 @@ func (h *Helper) updateConfig(configDir string, opt *StartOptions) error {
return err
}
glog.V(5).Infof("cgroup driver from Docker: %s", cgroupDriver)
if nodeCfg.KubeletArguments == nil {
nodeCfg.KubeletArguments = configapi.ExtendedArguments{}
}
nodeCfg.KubeletArguments["cgroup-driver"] = []string{cgroupDriver}
}
nodeCfg.KubeletArguments["fail-swap-on"] = []string{"false"}

cfgBytes, err = configapilatest.WriteYAML(nodeCfg)
if err != nil {
Expand Down

0 comments on commit 5bb0613

Please sign in to comment.