diff --git a/argocd/app-of-apps/templates/applications.yaml b/argocd/app-of-apps/templates/applications.yaml index e981e07..f03ae76 100644 --- a/argocd/app-of-apps/templates/applications.yaml +++ b/argocd/app-of-apps/templates/applications.yaml @@ -10,6 +10,17 @@ metadata: finalizers: - resources-finalizer.argocd.argoproj.io spec: + {{- if .ignoreDifferences }} + ignoreDifferences: + {{- range .ignoreDifferences }} + - group: {{ .group }} + kind: {{ .kind }} + name: {{ .name }} + namespace: {{ .namespace }} + jsonPointers: + {{- toYaml .jsonPointers . | nindent 10 }} + {{- end }} + {{- end }} syncPolicy: {{- if .serverSideApply }} syncOptions: diff --git a/argocd/app-of-apps/test/values.yaml b/argocd/app-of-apps/test/values.yaml index 087f69c..d537777 100644 --- a/argocd/app-of-apps/test/values.yaml +++ b/argocd/app-of-apps/test/values.yaml @@ -56,6 +56,14 @@ applications: repoURL: https://git.2martens.de/2martens/cloud-configuration.git serverSideApply: true syncWave: 2 + ignoreDifferences: + - group: "" + kind: PersistentVolume + name: prometheus-prometheus-pv-0 + namespace: observability + jsonPointers: + - /spec/claimRef/resourceVersion + - /spec/claimRef/uid - name: prometheus-adapter project: default targetRevision: main