fix: resolve argo-rollouts CRD OutOfSync with ignoreDifferences
All checks were successful
AI Review / AI Code Review (pull_request) Successful in 3s
PR Checks / Validate & Security Scan (pull_request) Successful in 14s

Add ignoreDifferences for CRDs (metadata labels/annotations drift
caused by ServerSideApply field managers) and RespectIgnoreDifferences
sync option.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
root 2026-02-22 21:01:11 +01:00
parent ac380824c1
commit 4dd21b1e99

View File

@ -27,6 +27,13 @@ spec:
destination:
server: https://kubernetes.default.svc
namespace: argo-rollouts
ignoreDifferences:
- group: apiextensions.k8s.io
kind: CustomResourceDefinition
jsonPointers:
- /metadata/labels
- /metadata/annotations
- /spec/names/shortNames
syncPolicy:
automated:
prune: true
@ -34,3 +41,4 @@ spec:
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
- RespectIgnoreDifferences=true