Skip to content

Commit

Permalink
feat(argocd-apps): Support Template Patch to ApplicationSet (#2549)
Browse files Browse the repository at this point in the history
Signed-off-by: yu-croco <yu.croco@gmail.com>
Co-authored-by: Petr Drastil <petr.drastil@gmail.com>
  • Loading branch information
yu-croco and pdrastil authored Feb 25, 2024
1 parent 7c8fab5 commit fa85e82
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts/argocd-apps/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: argocd-apps
description: A Helm chart for managing additional Argo CD Applications and Projects
type: application
version: 1.6.1
version: 1.6.2
home: https://github.com/argoproj/argo-helm
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
keywords:
Expand All @@ -17,5 +17,5 @@ annotations:
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
artifacthub.io/changes: |
- kind: fixed
description: move ignoreApplicationDifferences block up a level to fix render
- kind: added
description: Support Template Patch to ApplicationSet
13 changes: 13 additions & 0 deletions charts/argocd-apps/ci/applicationsets-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,19 @@ applicationsets:
syncPolicy:
# Set Application finalizer
preserveResourcesOnDeletion: false
templatePatch: |
spec:
source:
helm:
valueFiles:
{{- range $valueFile := .valueFiles }}
- {{ $valueFile }}
{{- end }}
{{- if .autoSync }}
syncPolicy:
automated:
prune: {{ .prune }}
{{- end }}
- name: applicationset-list-generator
generators:
- list:
Expand Down
4 changes: 4 additions & 0 deletions charts/argocd-apps/templates/applicationsets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,8 @@ spec:
{{- end }}
{{- end -}}
{{- end }}
{{- with .templatePatch }}
templatePatch: |
{{- . | nindent 4 }}
{{- end }}
{{- end }}
14 changes: 14 additions & 0 deletions charts/argocd-apps/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,20 @@ applicationsets: []
# syncPolicy:
# # Set Application finalizer
# preserveResourcesOnDeletion: false
# # Templating is only available on string type
# templatePatch: |
# spec:
# source:
# helm:
# valueFiles:
# {{- range $valueFile := .valueFiles }}
# - {{ $valueFile }}
# {{- end }}
# {{- if .autoSync }}
# syncPolicy:
# automated:
# prune: {{ .prune }}
# {{- end }}

# -- Deploy Argo CD Applications/ApplicationSets/Projects within this helm release
# @default -- `[]` (See [values.yaml])
Expand Down

0 comments on commit fa85e82

Please sign in to comment.