Interview Prep/GitOps & Argo CD/Sync Operations, Hooks & Health

Sync fails with `one or more synchronization tasks are not valid` and `the server could not find the requested resource` for a custom resource.

IntermediateTroubleshootingSync Operations, Hooks & Health
Answer

Likely causes → The CRD and its CRs are in the same sync, and the dry-run runs before the CRD exists, so the API server does not know the kind.

Diagnose → argocd app get web lists the failing CR kind; kubectl get crd | grep <group> on the target.

Fix → Add argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true to the CRs, or put the CRD in an earlier sync wave, or install CRDs from a separate app.

Prevent → Operators and their CRDs belong to a platform app that syncs before tenant apps.

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

More on Sync Operations, Hooks & Health