Unverified Commit 7f4f2375 authored by Brian Downs's avatar Brian Downs Committed by GitHub

added profile = false args to api, controllerManager, and scheduler (#1891)

parent af10a574
...@@ -152,6 +152,7 @@ func scheduler(cfg *config.Control, runtime *config.ControlRuntime) error { ...@@ -152,6 +152,7 @@ func scheduler(cfg *config.Control, runtime *config.ControlRuntime) error {
"port": "10251", "port": "10251",
"bind-address": "127.0.0.1", "bind-address": "127.0.0.1",
"secure-port": "0", "secure-port": "0",
"profiling": "false",
} }
if cfg.NoLeaderElect { if cfg.NoLeaderElect {
argsMap["leader-elect"] = "false" argsMap["leader-elect"] = "false"
...@@ -205,6 +206,7 @@ func apiServer(ctx context.Context, cfg *config.Control, runtime *config.Control ...@@ -205,6 +206,7 @@ func apiServer(ctx context.Context, cfg *config.Control, runtime *config.Control
argsMap["client-ca-file"] = runtime.ClientCA argsMap["client-ca-file"] = runtime.ClientCA
argsMap["enable-admission-plugins"] = "NodeRestriction" argsMap["enable-admission-plugins"] = "NodeRestriction"
argsMap["anonymous-auth"] = "false" argsMap["anonymous-auth"] = "false"
argsMap["profiling"] = "false"
if cfg.EncryptSecrets { if cfg.EncryptSecrets {
argsMap["encryption-provider-config"] = runtime.EncryptionConfig argsMap["encryption-provider-config"] = runtime.EncryptionConfig
} }
...@@ -906,6 +908,7 @@ func cloudControllerManager(ctx context.Context, cfg *config.Control, runtime *c ...@@ -906,6 +908,7 @@ func cloudControllerManager(ctx context.Context, cfg *config.Control, runtime *c
"cloud-provider": version.Program, "cloud-provider": version.Program,
"allow-untagged-cloud": "true", "allow-untagged-cloud": "true",
"node-status-update-frequency": "1m", "node-status-update-frequency": "1m",
"profiling": "false",
} }
if cfg.NoLeaderElect { if cfg.NoLeaderElect {
argsMap["leader-elect"] = "false" argsMap["leader-elect"] = "false"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment