From 73a72d9c290da1c85b73d7c12517a2c5aa25d0c5 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 765b871c0..7ffd7b47a 100644 --- a/cli/cmd/cluster-apply.go +++ b/cli/cmd/cluster-apply.go @@ -81,8 +81,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{