Skip to content

Commit 1788dec

Browse files
committed
chore(monitor): use dynamic clusterrole name
1 parent c0020c4 commit 1788dec

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

charts/monitor/templates/monitor-clusterrole.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
kind: ClusterRole
44
apiVersion: rbac.authorization.k8s.io/v1
55
metadata:
6-
name: drycc:drycc-monitor
6+
name: {{ printf "%s:drycc-monitor" .Release.Namespace | quote }}
77
aggregationRule:
88
clusterRoleSelectors:
99
- matchLabels:

charts/monitor/templates/monitor-telegraf-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-monitor-telegraf
5+
name: {{ printf "%s:drycc-monitor-telegraf" .Release.Namespace | quote }}
66
labels:
77
rbac.authorization.k8s.io/aggregate-view-telegraf-stats: "true"
88
app: drycc-monitor-telegraf

charts/monitor/templates/monitor-telegraf-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-monitor-telegraf
5+
name: {{ printf "%s:drycc-monitor-telegraf" .Release.Namespace | quote }}
66
labels:
77
app: drycc-monitor-telegraf
88
heritage: drycc
99
roleRef:
1010
apiGroup: rbac.authorization.k8s.io
1111
kind: ClusterRole
12-
name: drycc:drycc-monitor-telegraf
12+
name: {{ printf "%s:drycc-monitor-telegraf" .Release.Namespace | quote }}
1313
subjects:
1414
- kind: ServiceAccount
1515
name: drycc-monitor-telegraf

0 commit comments

Comments
 (0)