Skip to content

Commit ffc8416

Browse files
committed
fix: align ClusterRoleBinding on RoleBinding template
1 parent f0071dc commit ffc8416

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

application/templates/clusterrolebinding.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
{{- if and .Values.rbac.enabled .Values.rbac.clusterRoles }}
1+
{{- if and (.Values.rbac).enabled .Values.rbac.clusterRoles }}
22
{{- range .Values.rbac.clusterRoles }}
3+
---
34
apiVersion: rbac.authorization.k8s.io/v1
45
kind: ClusterRoleBinding
56
metadata:
7+
name: {{ template "application.name" $ }}-clusterrolebinding-{{ .name }}
68
labels:
79
{{- include "application.labels" $ | nindent 4 }}
810
{{- if $.Values.rbac.additionalLabels }}
@@ -12,7 +14,6 @@ metadata:
1214
annotations:
1315
{{ toYaml $.Values.rbac.annotations | indent 4 }}
1416
{{- end }}
15-
name: {{ template "application.name" $ }}-clusterrolebinding-{{ .name }}
1617
roleRef:
1718
apiGroup: rbac.authorization.k8s.io
1819
kind: ClusterRole
@@ -25,6 +26,5 @@ subjects:
2526
name: {{ template "application.name" $ }}
2627
{{- end }}
2728
namespace: {{ $.Release.Namespace }}
28-
---
2929
{{- end }}
3030
{{- end }}

0 commit comments

Comments
 (0)