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

Your app needs cert-manager's CRDs, an Issuer and then a Certificate, all in one Application. The first sync fails. What do you do?

IntermediateScenarioSync Behaviour, Waves & Hooks
Answer

Situation read → CRDs and CRs in the same sync; dry-run fails for unknown kinds.

What I'd do →

  1. Put CRDs in wave -2, the Issuer in -1, the Certificate and workloads in 0.
  2. Add SkipDryRunOnMissingResource=true so the dry-run does not fail on kinds whose CRD is not created yet.
  3. Add a Lua health check for Issuer/Certificate (or rely on the built-in one) so waves wait for readiness.
  4. Better: install cert-manager as its own Application in an earlier wave of the app-of-apps.

Why → Waves order the apply, and skipping the dry-run avoids failing on unknown types.

Interview tip → Say you prefer separating operators from their consumers into different apps.

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

More on Sync Behaviour, Waves & Hooks