Skip to content

Commit 5bacfb9

Browse files
committed
fix: correct Helm template syntax in role.yaml
- Fix incorrect 'with' syntax: {{- .Values.controller.roleRules.with }} -> {{- with .Values.controller.roleRules }} - Add proper else block structure for backward compatibility - Remove duplicate {{- end }} statements Signed-off-by: puretension <rlrlfhtm5@gmail.com>
1 parent 30de44d commit 5bacfb9

File tree

1 file changed

+3
-3
lines changed
  • charts/argo-cd/templates/argocd-application-controller

1 file changed

+3
-3
lines changed

charts/argo-cd/templates/argocd-application-controller/role.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ metadata:
66
labels:
77
{{- include "argo-cd.labels" (dict "context" . "component" .Values.controller.name "name" .Values.controller.name) | nindent 4 }}
88
rules:
9-
{{- .Values.controller.roleRules.with }}
10-
{{- toYaml . | nindent 2 }}
11-
{{- end }}
9+
{{- with .Values.controller.roleRules }}
10+
{{- toYaml . | nindent 0 }}
11+
{{- else }}
1212
- apiGroups:
1313
- ""
1414
resources:

0 commit comments

Comments
 (0)