Don't write ccm.yaml if --disable-cloud-controller is set

pull/1752/head
Darren Shepherd 2020-04-28 23:08:22 -07:00
parent 39c3854648
commit 341895c322
1 changed files with 5 additions and 0 deletions

View File

@ -171,6 +171,11 @@ func run(app *cli.Context, cfg *cmds.Server) error {
serverConfig.DisableServiceLB = true
}
if serverConfig.ControlConfig.DisableCCM {
serverConfig.ControlConfig.Skips["ccm"] = true
serverConfig.ControlConfig.Disables["ccm"] = true
}
logrus.Info("Starting k3s ", app.App.Version)
notifySocket := os.Getenv("NOTIFY_SOCKET")
os.Unsetenv("NOTIFY_SOCKET")