Skip to content

Commit 339bf37

Browse files
authored
feat(helm): add value to disable ClusterRoleBinding for out-of-cluster install (#962)
Fixes #956
1 parent d752b27 commit 339bf37

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

chart/templates/clusterrolebinding.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.rbac.create }}
12
kind: ClusterRoleBinding
23
apiVersion: rbac.authorization.k8s.io/v1
34
metadata:
@@ -10,3 +11,4 @@ subjects:
1011
- kind: ServiceAccount
1112
name: {{ include "hcloud-cloud-controller-manager.name" . }}
1213
namespace: {{ .Release.Namespace }}
14+
{{- end }}

chart/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ robot:
129129
# Set to true to enable support for Robot (Dedicated) servers.
130130
enabled: false
131131

132+
rbac:
133+
# Create a cluster role binding with admin access for the service account.
134+
create: true
135+
132136
podLabels: {}
133137

134138
podAnnotations: {}

0 commit comments

Comments
 (0)