feat(argocd-apps): support ignoreApplicationDifferences

Signed-off-by: imranismail <hey@imranismail.dev>
This commit is contained in:
imranismail 2024-01-22 14:18:59 +13:00
parent 9e31be4a60
commit 6eab33773b
No known key found for this signature in database
4 changed files with 15 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.4.1
version: 1.5.0
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: syncOptions for applications
- kind: added
description: ability to specify ignoreApplicationDifferences for applicationsets

View file

@ -13,6 +13,10 @@ applicationsets:
directories:
- path: guestbook
- path: kustomize-*
# Ref https://argo-cd.readthedocs.io/en/stable/operator-manual/applicationset/Controlling-Resource-Modification/#allow-temporarily-toggling-auto-sync
ignoreApplicationDifferences:
- jsonPointers:
- /spec/syncPolicy
template:
metadata:
name: '{{path.basename}}'

View file

@ -27,6 +27,10 @@ spec:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .strategy }}
{{- with .ignoreApplicationDifferences }}
ignoreApplicationDifferences:
{{- toYaml . | nindent 4 }}
{{- end }}
strategy:
{{- toYaml . | nindent 4 }}
{{- end }}

View file

@ -106,6 +106,10 @@ applicationsets: []
# directories:
# - path: guestbook
# - path: kustomize-*
# # Ref https://argo-cd.readthedocs.io/en/stable/operator-manual/applicationset/Controlling-Resource-Modification/#allow-temporarily-toggling-auto-sync
# ignoreApplicationDifferences:
# - jsonPointers:
# - /spec/syncPolicy
# # Progressive Syncs is an experimental feature and it must be explicitly enabled
# # Ref: https://argo-cd.readthedocs.io/en/stable/operator-manual/applicationset/Progressive-Syncs/#enabling-progressive-syncs
# strategy: