Skip to content

Commit a845d1f

Browse files
committed
chore(controller): use dynamic clusterrole name
1 parent 383e3d0 commit a845d1f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

charts/controller/templates/controller-clusterrole.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
kind: ClusterRole
33
apiVersion: rbac.authorization.k8s.io/v1
44
metadata:
5-
name: drycc:drycc-controller
5+
name: {{ printf "%s:drycc-controller" .Release.Namespace | quote }}
66
labels:
77
app: drycc-controller
88
heritage: drycc

charts/controller/templates/controller-clusterrolebinding.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
kind: ClusterRoleBinding
33
apiVersion: rbac.authorization.k8s.io/v1
44
metadata:
5-
name: drycc:drycc-controller
5+
name: {{ printf "%s:drycc-controller" .Release.Namespace | quote }}
66
labels:
77
app: drycc-controller
88
heritage: drycc
99
roleRef:
1010
apiGroup: rbac.authorization.k8s.io
1111
kind: ClusterRole
12-
name: drycc:drycc-controller
12+
name: {{ printf "%s:drycc-controller" .Release.Namespace | quote }}
1313
subjects:
1414
- kind: ServiceAccount
1515
name: drycc-controller

0 commit comments

Comments
 (0)