From 4843eb95f76fe17e9b1f050f414ce00606d41ac5 Mon Sep 17 00:00:00 2001 From: duynguyen Date: Wed, 2 Sep 2026 16:18:39 +0700 Subject: [PATCH] fix: ignore Gateway API defaulted fields on grafana HTTPRoute backendRefs[].group and .weight get server-side defaulted by the Gateway API admission webhook but are omitted from our manifest, so ArgoCD saw permanent OutOfSync even though the route is Accepted/ResolvedRefs=True and Grafana is reachable. ignoreDifferences on those two fields closes the false diff. --- platform/apps/kube-prometheus-stack/application.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/platform/apps/kube-prometheus-stack/application.yaml b/platform/apps/kube-prometheus-stack/application.yaml index 2bdb589..31fe23a 100644 --- a/platform/apps/kube-prometheus-stack/application.yaml +++ b/platform/apps/kube-prometheus-stack/application.yaml @@ -25,6 +25,17 @@ spec: destination: server: https://kubernetes.default.svc namespace: monitoring + # Gateway API's admission webhook server-side-defaults backendRefs[].group + # and .weight on the grafana HTTPRoute — fields our manifest omits — so + # ArgoCD sees permanent drift vs Git even though the object matches intent + # (route itself is Accepted/ResolvedRefs=True, Grafana reachable). Ignore + # the defaulted fields instead of chasing a diff that will never close. + ignoreDifferences: + - group: gateway.networking.k8s.io + kind: HTTPRoute + jsonPointers: + - /spec/rules/0/backendRefs/0/group + - /spec/rules/0/backendRefs/0/weight syncPolicy: automated: prune: true