diff --git a/charts/argocd-apps/templates/applications.yaml b/charts/argocd-apps/templates/applications.yaml index 967cb308..4b33dc96 100644 --- a/charts/argocd-apps/templates/applications.yaml +++ b/charts/argocd-apps/templates/applications.yaml @@ -60,6 +60,7 @@ spec: {{- else }} {{- $template := .template | toYaml -}} {{- range .apps }} +--- {{ tpl $template (set . "Template" $.Template) }} {{- end }} {{- end }} diff --git a/charts/argocd-apps/templates/applicationsets.yaml b/charts/argocd-apps/templates/applicationsets.yaml index 2d1b92b3..293b3471 100644 --- a/charts/argocd-apps/templates/applicationsets.yaml +++ b/charts/argocd-apps/templates/applicationsets.yaml @@ -82,11 +82,13 @@ spec: {{- if kindIs "string" .template }} {{- $template := .template -}} {{- range .appSets }} +--- {{ tpl $template (set . "Template" $.Template) }} {{- end }} {{- else }} {{- $template := .template | toYaml -}} {{- range .appSets }} +--- {{ tpl $template (set . "Template" $.Template) }} {{- end }} {{- end }} diff --git a/charts/argocd-apps/templates/projects.yaml b/charts/argocd-apps/templates/projects.yaml index 27367f14..8b2d2052 100644 --- a/charts/argocd-apps/templates/projects.yaml +++ b/charts/argocd-apps/templates/projects.yaml @@ -68,16 +68,17 @@ spec: {{- toYaml . | nindent 4 }} {{- end }} {{- end }} ---- {{- range .Values.projectTemplates }} {{- if kindIs "string" .template }} {{- $template := .template -}} {{- range .projects }} +--- {{ tpl $template (set . "Template" $.Template) }} {{- end }} {{- else }} {{- $template := .template | toYaml -}} {{- range .projects }} +--- {{ tpl $template (set . "Template" $.Template) }} {{- end }} {{- end }}