mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-08-04 04:20:14 +00:00
Don't write ccm.yaml if --disable-cloud-controller is set
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user