Interview Prep/GitOps & Argo CD/Sync Behaviour, Waves & Hooks

An operator creates child resources that inherit Argo CD's tracking metadata, and the app shows them as extraneous and wants to prune them. What do you do?

AdvancedScenarioSync Behaviour, Waves & Hooks
Answer

Situation read → Generated objects copied labels or annotations from a tracked parent.

What I'd do →

  1. Switch to annotation tracking (default in 3.x) if still on label tracking, because operators often copy labels like app.kubernetes.io/instance.
  2. Annotate generated objects (or configure the operator to set) argocd.argoproj.io/compare-options: IgnoreExtraneous.
  3. Disable prune for those kinds if needed, and file an issue with the operator to stop copying tracking metadata.

Why → Argo CD believes it owns anything carrying its tracking ID; without care it prunes operator output.

Interview tip → This is exactly why annotation tracking became the default.

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

More on Sync Behaviour, Waves & Hooks