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 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.5.0 version: 1.6.0
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: deprecated - kind: added
description: Add deprecated note for Argo CD Extensions description: ability to specify ignoreApplicationDifferences for applicationsets

View file

@ -13,6 +13,10 @@ applicationsets:
directories: directories:
- path: guestbook - path: guestbook
- path: kustomize-* - 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: template:
metadata: metadata:
name: '{{path.basename}}' name: '{{path.basename}}'

View file

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

View file

@ -106,6 +106,10 @@ applicationsets: []
# directories: # directories:
# - path: guestbook # - path: guestbook
# - path: kustomize-* # - 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 # # 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 # # Ref: https://argo-cd.readthedocs.io/en/stable/operator-manual/applicationset/Progressive-Syncs/#enabling-progressive-syncs
# strategy: # strategy: