From 61e20dd2aef816e39f8ec8acdad0cfb0f4fce748 Mon Sep 17 00:00:00 2001 From: Dmitriy Ivolgin Date: Thu, 17 Oct 2024 08:46:56 -0700 Subject: [PATCH] Use cluster role for the SDK deployment when running in EC (#4952) --- pkg/upstream/helm.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/upstream/helm.go b/pkg/upstream/helm.go index 76f74721cd..095da6ab02 100644 --- a/pkg/upstream/helm.go +++ b/pkg/upstream/helm.go @@ -16,6 +16,7 @@ import ( "github.com/pkg/errors" "github.com/replicatedhq/kots/pkg/kotsutil" "github.com/replicatedhq/kots/pkg/upstream/types" + "github.com/replicatedhq/kots/pkg/util" "gopkg.in/yaml.v3" ) @@ -282,6 +283,10 @@ func buildReplicatedValues(u *types.Upstream, options types.WriteOptions) (map[s replicatedValues["privateCAConfigmap"] = options.PrivateCAsConfigmap } + if util.IsEmbeddedCluster() { + replicatedValues["clusterRole"] = "kotsadm-role" + } + replicatedValues["extraEnv"] = []struct { Name string `yaml:"name"` Value string `yaml:"value"`