Skip to content

Commit

Permalink
Use cluster role for the SDK deployment when running in EC (#4952)
Browse files Browse the repository at this point in the history
  • Loading branch information
divolgin authored Oct 17, 2024
1 parent 5cc9f72 commit 61e20dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/upstream/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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"`
Expand Down

0 comments on commit 61e20dd

Please sign in to comment.