feat(argocd-apps): support ignoreApplicationDifferences for appsets (#2442)

* feat(argocd-apps): support ignoreApplicationDifferences

Signed-off-by: imranismail <hey@imranismail.dev>

* chore: bump version

Signed-off-by: Imran Ismail <hey@imranismail.dev>

---------

Signed-off-by: imranismail <hey@imranismail.dev>
Signed-off-by: Imran Ismail <hey@imranismail.dev>
Co-authored-by: Aikawa <yu.croco@gmail.com>
This commit is contained in:
Imran Ismail 2024-01-30 13:34:04 +13:00 committed by GitHub
parent 47102d9768
commit 3b7a005ce3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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.5.0
version: 1.6.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: deprecated
description: Add deprecated note for Argo CD Extensions
- 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: