Feat: tune ArgoCD sync options

This commit is contained in:
Stefan Reimer 2025-05-24 14:10:26 +00:00
parent ccdf4652cf
commit 9e9ae3e8b8
2 changed files with 5 additions and 6 deletions

View File

@ -25,8 +25,7 @@ spec:
automated:
prune: true
syncOptions:
- ServerSideApply=true
# - ApplyOutOfSyncOnly=true
- ApplyOutOfSyncOnly=true
info:
- name: "Source:"
value: "https://git.zero-downtime.net/ZeroDownTime/KubeZero/src/branch/release/v1.32/"

View File

@ -9,10 +9,11 @@ metadata:
namespace: argocd
labels:
{{- include "kubezero-lib.labels" . | nindent 4 }}
{{- with ( index .Values $name "annotations" ) }}
annotations:
argocd.argoproj.io/sync-options: Replace=true
{{- with ( index .Values $name "annotations" ) }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
{{- if not ( index .Values $name "retain" ) }}
finalizers:
- resources-finalizer.argocd.argoproj.io
@ -38,9 +39,8 @@ spec:
automated:
prune: true
syncOptions:
- ServerSideApply=true
- CreateNamespace=true
# - ApplyOutOfSyncOnly=true
- ApplyOutOfSyncOnly=true
info:
- name: "Source:"
value: "https://git.zero-downtime.net/ZeroDownTime/KubeZero/src/branch/release/v1.31/charts/kubezero-{{ $name }}"