Skip to content

Commit 61e20dd

Browse files
authored
Use cluster role for the SDK deployment when running in EC (#4952)
1 parent 5cc9f72 commit 61e20dd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/upstream/helm.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import (
1616
"github.com/pkg/errors"
1717
"github.com/replicatedhq/kots/pkg/kotsutil"
1818
"github.com/replicatedhq/kots/pkg/upstream/types"
19+
"github.com/replicatedhq/kots/pkg/util"
1920
"gopkg.in/yaml.v3"
2021
)
2122

@@ -282,6 +283,10 @@ func buildReplicatedValues(u *types.Upstream, options types.WriteOptions) (map[s
282283
replicatedValues["privateCAConfigmap"] = options.PrivateCAsConfigmap
283284
}
284285

286+
if util.IsEmbeddedCluster() {
287+
replicatedValues["clusterRole"] = "kotsadm-role"
288+
}
289+
285290
replicatedValues["extraEnv"] = []struct {
286291
Name string `yaml:"name"`
287292
Value string `yaml:"value"`

0 commit comments

Comments
 (0)