From 98610024ed35ceba224ab1894e87c03e6389eb4c Mon Sep 17 00:00:00 2001 From: Mateusz Gozdek Date: Thu, 26 Mar 2020 10:54:42 +0100 Subject: [PATCH] cli/cmd/cluster-apply.go: don't try to upgrade managed platforms If we deploy on managed Kubernetes, it won't have controlplane installed as Helm releases, so we shouldn't try to upgrade it. The upgrade will be most likely driven by Terraform. Refs #215 #216 Signed-off-by: Mateusz Gozdek --- cli/cmd/cluster-apply.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/cmd/cluster-apply.go b/cli/cmd/cluster-apply.go index d46836dee..2ae73681e 100644 --- a/cli/cmd/cluster-apply.go +++ b/cli/cmd/cluster-apply.go @@ -84,8 +84,8 @@ func runClusterApply(cmd *cobra.Command, args []string) { ctxLogger.Fatalf("Verify cluster: %v", err) } - // Do controlplane upgrades only if cluster already exists. - if exists { + // Do controlplane upgrades only if cluster already exists and it is not a managed platform. + if exists && !p.Meta().Managed { fmt.Printf("\nEnsuring that cluster controlplane is up to date.\n") cu := controlplaneUpdater{