From e08a6625098655113b74582241d98f1a843fb451 Mon Sep 17 00:00:00 2001 From: Brad Davidson Date: Mon, 28 Nov 2022 22:49:33 +0000 Subject: [PATCH] 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: Brad Davidson --- pkg/daemons/control/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/daemons/control/server.go b/pkg/daemons/control/server.go index a68bb24a36..97872a48c6 100644 --- a/pkg/daemons/control/server.go +++ b/pkg/daemons/control/server.go @@ -319,6 +319,7 @@ func cloudControllerManager(ctx context.Context, cfg *config.Control) error { } if cfg.DisableCCM { argsMap["controllers"] = argsMap["controllers"] + ",-cloud-node,-cloud-node-lifecycle" + argsMap["secure-port"] = "0" } if cfg.DisableServiceLB { argsMap["controllers"] = argsMap["controllers"] + ",-service"