Interview Prep/GitOps & Argo CD/OutOfSync Loops & Diff Problems

A MutatingWebhookConfiguration is always OutOfSync on `webhooks[0].clientConfig.caBundle`.

IntermediateTroubleshootingOutOfSync Loops & Diff Problems
Answer

Likely causes → cert-manager's CA injector or the operator itself writes caBundle after Argo CD applies an empty or stale value.

Diagnose → argocd app diff <app> shows caBundle changes only; kubectl get mutatingwebhookconfiguration <name> -o yaml shows the cert-manager.io/inject-ca-from annotation.

Fix →

ignoreDifferences:
  - group: admissionregistration.k8s.io
    kind: MutatingWebhookConfiguration
    jqPathExpressions:
      - '.webhooks[]?.clientConfig.caBundle'

Add RespectIgnoreDifferences=true.

Prevent → Put it in resource.customizations.ignoreDifferences globally for webhook configurations, since every injected webhook behaves this way.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on OutOfSync Loops & Diff Problems