Skip to content

Commit 0c33383

Browse files
committed
avoid name clashes
1 parent 6c78e70 commit 0c33383

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Allow to install the coturn chart multiple times in multiple namespaces on the same cluster.

charts/coturn/templates/service-account.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ metadata:
1212
apiVersion: rbac.authorization.k8s.io/v1
1313
kind: ClusterRole
1414
metadata:
15-
name: coturn
15+
name: coturn-{{ .Release.Namespace }}
1616
labels:
1717
app: coturn
1818
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
@@ -26,7 +26,7 @@ rules:
2626
apiVersion: rbac.authorization.k8s.io/v1
2727
kind: ClusterRoleBinding
2828
metadata:
29-
name: coturn
29+
name: coturn-{{ .Release.Namespace }}
3030
labels:
3131
app: coturn
3232
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
@@ -35,7 +35,7 @@ metadata:
3535
roleRef:
3636
kind: ClusterRole
3737
apiGroup: rbac.authorization.k8s.io
38-
name: coturn
38+
name: coturn-{{ .Release.Namespace }}
3939
subjects:
4040
- kind: ServiceAccount
4141
name: coturn

0 commit comments

Comments
 (0)