Skip to content

Commit 13eb726

Browse files
committed
chore(database): use dynamic clusterrole name
1 parent 2180258 commit 13eb726

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

charts/database/templates/database-clusterrole.yaml

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

charts/database/templates/database-clusterrolebinding.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRoleBinding
44
metadata:
5-
name: drycc-database
5+
name: {{ printf "%s:drycc-database" .Release.Namespace | quote }}
66
roleRef:
77
apiGroup: rbac.authorization.k8s.io
88
kind: ClusterRole
9-
name: drycc-database
9+
name: {{ printf "%s:drycc-database" .Release.Namespace | quote }}
1010
subjects:
1111
- kind: ServiceAccount
1212
name: drycc-database

0 commit comments

Comments
 (0)