feat(argocd-apps): Support Template Patch to ApplicationSet (#2549)

Signed-off-by: yu-croco <yu.croco@gmail.com>
Co-authored-by: Petr Drastil <petr.drastil@gmail.com>
pull/2550/head argocd-apps-1.6.2
Aikawa 2024-02-25 22:11:42 +09:00 committed by GitHub
parent 7c8fab5a7f
commit fa85e824f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 34 additions and 3 deletions

View File

@ -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:
@ -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

View File

@ -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:

View File

@ -84,4 +84,8 @@ spec:
{{- end }}
{{- end -}}
{{- end }}
{{- with .templatePatch }}
templatePatch: |
{{- . | nindent 4 }}
{{- end }}
{{- end }}

View File

@ -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])