update ignore differences

This commit is contained in:
2025-05-17 13:51:01 -05:00
parent 2cfff33aa7
commit dabe18112b
3 changed files with 23 additions and 16 deletions

View File

@@ -52,4 +52,5 @@ spec:
- ApplyOutOfSyncOnly={{ $stack.syncPolicy.syncOptions.applyOutOfSyncOnly | default true }}
- ServerSideApply={{ $stack.syncPolicy.syncOptions.serverSideApply | default true }}
- PruneLast={{ $stack.syncPolicy.syncOptions.pruneLast | default true }}
- RespectIgnoreDifferences={{ $stack.syncPolicy.syncOptions.respectIgnoreDifferences | default true }}
{{- end }}

View File

@@ -18,11 +18,11 @@ spec:
name: in-cluster
namespace: kube-system
revisionHistoryLimit: 3
# ignoreDifferences:
# - group: ""
# kind: ServiceMonitor
# jqPathExpressions:
# - .spec.endpoints[].relabelings[].action
ignoreDifferences:
- group: ""
kind: ServiceMonitor
jqPathExpressions:
- .spec.endpoints[].relabelings[].action
syncPolicy:
automated:
prune: true
@@ -38,6 +38,7 @@ spec:
- ApplyOutOfSyncOnly=true
- ServerSideApply=true
- PruneLast=true
- RespectIgnoreDifferences=true
---
apiVersion: argoproj.io/v1alpha1