Commit c2944e8d authored by Brad Davidson's avatar Brad Davidson Committed by Brad Davidson

Disable CCM metrics port when legacy CCM functionality is disabled

Prevents port conflicts on upgrade for users that have deployed other cloud controllers. Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com> (cherry picked from commit e08a6625) Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com>
parent 83690756
...@@ -321,6 +321,7 @@ func cloudControllerManager(ctx context.Context, cfg *config.Control) error { ...@@ -321,6 +321,7 @@ func cloudControllerManager(ctx context.Context, cfg *config.Control) error {
} }
if cfg.DisableCCM { if cfg.DisableCCM {
argsMap["controllers"] = argsMap["controllers"] + ",-cloud-node,-cloud-node-lifecycle" argsMap["controllers"] = argsMap["controllers"] + ",-cloud-node,-cloud-node-lifecycle"
argsMap["secure-port"] = "0"
} }
if cfg.DisableServiceLB { if cfg.DisableServiceLB {
argsMap["controllers"] = argsMap["controllers"] + ",-service" argsMap["controllers"] = argsMap["controllers"] + ",-service"
......
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