Skip to content

Commit b3922ee

Browse files
committed
fix(rolebinding.yaml): make the 'kind' field dynamic based on the value of .Values.rbac.namespaced to support both Role and ClusterRole
1 parent 6cf489e commit b3922ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

charts/kubernetes-event-exporter/templates/rolebinding.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ metadata:
99
{{- include "kubernetes-event-exporter.labels" . | nindent 4 }}
1010
roleRef:
1111
apiGroup: rbac.authorization.k8s.io
12-
kind: ClusterRole
12+
kind: {{ .Values.rbac.namespaced | ternary "Role" "ClusterRole" }}
1313
name: {{ include "kubernetes-event-exporter.fullname" . }}
1414
subjects:
1515
- kind: ServiceAccount

0 commit comments

Comments
 (0)