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>
This commit is contained in:
parent
7c8fab5a7f
commit
fa85e824f0
4 changed files with 34 additions and 3 deletions
|
@ -2,7 +2,7 @@ apiVersion: v2
|
||||||
name: argocd-apps
|
name: argocd-apps
|
||||||
description: A Helm chart for managing additional Argo CD Applications and Projects
|
description: A Helm chart for managing additional Argo CD Applications and Projects
|
||||||
type: application
|
type: application
|
||||||
version: 1.6.1
|
version: 1.6.2
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
|
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
|
||||||
keywords:
|
keywords:
|
||||||
|
@ -17,5 +17,5 @@ annotations:
|
||||||
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
|
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
|
||||||
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: fixed
|
- kind: added
|
||||||
description: move ignoreApplicationDifferences block up a level to fix render
|
description: Support Template Patch to ApplicationSet
|
||||||
|
|
|
@ -46,6 +46,19 @@ applicationsets:
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
# Set Application finalizer
|
# Set Application finalizer
|
||||||
preserveResourcesOnDeletion: false
|
preserveResourcesOnDeletion: false
|
||||||
|
templatePatch: |
|
||||||
|
spec:
|
||||||
|
source:
|
||||||
|
helm:
|
||||||
|
valueFiles:
|
||||||
|
{{- range $valueFile := .valueFiles }}
|
||||||
|
- {{ $valueFile }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .autoSync }}
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: {{ .prune }}
|
||||||
|
{{- end }}
|
||||||
- name: applicationset-list-generator
|
- name: applicationset-list-generator
|
||||||
generators:
|
generators:
|
||||||
- list:
|
- list:
|
||||||
|
|
|
@ -84,4 +84,8 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .templatePatch }}
|
||||||
|
templatePatch: |
|
||||||
|
{{- . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -157,6 +157,20 @@ applicationsets: []
|
||||||
# syncPolicy:
|
# syncPolicy:
|
||||||
# # Set Application finalizer
|
# # Set Application finalizer
|
||||||
# preserveResourcesOnDeletion: false
|
# 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
|
# -- Deploy Argo CD Applications/ApplicationSets/Projects within this helm release
|
||||||
# @default -- `[]` (See [values.yaml])
|
# @default -- `[]` (See [values.yaml])
|
||||||
|
|
Loading…
Reference in a new issue