Ignore operator-managed labels
spec:
ignoreDifferences:
- group: opentelemetry.io
kind: Instrumentation
name: otel-java-instrumentation
jqPathExpressions:
- .metadata.labels."app.kubernetes.io/instance"
Ignore kubectl restartedAt annotation
spec:
ignoreDifferences:
- group: apps
kind: Deployment
name: gitlab-controller-manager
jqPathExpressions:
- .spec.template.metadata.annotations."kubectl.kubernetes.io/restartedAt"
Ignore revision annotation on all Deployments
spec:
ignoreDifferences:
- group: apps
kind: Deployment
jqPathExpressions:
- .metadata.annotations."deployment.kubernetes.io/revision"
Ignore all managed fields (useful for CRDs)
spec:
ignoreDifferences:
- group: "*"
kind: "*"
managedFieldsManagers:
- kube-controller-manager
Cluster-wide default (argocd-cm ConfigMap)
data:
resource.customizations.ignoreDifferences.all: |
jqPathExpressions:
- .metadata.managedFields
Gotcha
- Keys with dots/slashes need quotes in jqPathExpressions:
.metadata.labels."app.kubernetes.io/instance" jsonPointersalternative uses~1for slashes:/metadata/annotations/kubectl.kubernetes.io~1restartedAt- Be specific with
name,group,kind— wildcards mask real drift
Ready to scale your cloud infrastructure?
Let's discuss how CloudCops can help you build secure, scalable, and modern DevOps workflows. Schedule a free discovery call today.
Related Snippets
ArgoCD GitOps Essentials: Quick Reference
Core ArgoCD concepts, architecture components, and key features at a glance.
Feb 1, 2026
argocd
gitops
kubernetes
Kubernetes Useful Commands Cheat Sheet
Battle-tested kubectl commands for daily cluster operations — pod cleanup, version checks, network debugging, bulk patching, and more.
Feb 15, 2026
kubernetes
kubectl
bash
Zalando Postgres Operator: Backup & Restore on Azure
Complete guide to setting up WAL-G backups with Azure Blob Storage for the Zalando Postgres Operator, including restore procedures and troubleshooting.
Feb 10, 2026
kubernetes
postgresql
azure