From a0e483a8c43787b25b5062a5ce6884e2ec27b63d Mon Sep 17 00:00:00 2001 From: Mayne0213 Date: Fri, 2 Jan 2026 23:17:10 +0900 Subject: [PATCH] FEAT(trivy): add ignoreDiff for trivy-ui CPU limit - Add ignoreDifferences for CPU limit field - Prevent ArgoCD sync drift --- trivy/argocd.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/trivy/argocd.yaml b/trivy/argocd.yaml index ad95cd2..37fc214 100644 --- a/trivy/argocd.yaml +++ b/trivy/argocd.yaml @@ -92,6 +92,11 @@ spec: destination: server: https://kubernetes.default.svc namespace: trivy-system + ignoreDifferences: + - group: apps + kind: Deployment + jsonPointers: + - /spec/template/spec/containers/0/resources/limits/cpu syncPolicy: automated: prune: true @@ -100,6 +105,7 @@ spec: - CreateNamespace=true - PrunePropagationPolicy=foreground - PruneLast=true + - RespectIgnoreDifferences=true retry: limit: 5 backoff: