Ignore resourceVersion and uid for pv of prometheus

This commit is contained in:
Jim Martens 2023-11-15 14:23:06 +01:00
parent d04b95ac95
commit c2a10c7628
2 changed files with 19 additions and 0 deletions

View File

@ -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:

View File

@ -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