Skip to content

Commit a2a6ba3

Browse files
committed
fix: render extra RBAC rules without extra indentation
serviceAccount.rbac.extra is expected to provide RBAC rule list items aligned under rules. The template added nindent 2, over-indenting those entries and producing invalid or misplaced YAML. Render the provided YAML directly so extra rules align with the rest of the rule list.
1 parent af88a22 commit a2a6ba3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

chart/templates/rbac.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ rules:
144144
- watch
145145
{{- end}}
146146
{{- if .Values.serviceAccount.rbac.extra }}
147-
{{ .Values.serviceAccount.rbac.extra | toYaml | nindent 2 }}
147+
{{ .Values.serviceAccount.rbac.extra | toYaml }}
148148
{{- end}}
149149
{{- if .Values.serviceAccount.rbac.clusterAdmin }}
150150
---

0 commit comments

Comments
 (0)