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

A team wants Argo CD to deploy only during business hours, except for emergencies. How do you set it up?

BeginnerScenarioSync Behaviour, Waves & Hooks
Answer

Situation read → Sync windows with a manual override.

What I'd do →

  1. Add an allow window to the project for working hours, for example schedule: "0 9 * * 1-5", duration: 9h, with timeZone set.
  2. Set manualSync: true so humans can still sync during closed hours.
  3. Restrict manual sync permission for prod to on-call roles via RBAC.

Why → Automated syncs wait for the window; emergencies stay possible and audited.

Interview tip → Mention argocd proj windows list to show current window state.

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

More on Sync Behaviour, Waves & Hooks