Argo CD
Hard
Syncing & Deployment
An app has a PreSync migration Job. You run argocd app sync shop --resource apps:Deployment:web. What happens to the migration Job?
Select your answer:
Show answer and explanation
Answer: It does not run, since selective syncs skip hooks
Explanation
Passing --resource makes the operation a selective sync, and Argo CD does not run hooks during a selective sync. Only the named Deployment is applied, so new pods can start against the old schema. Run a full sync for releases that carry schema changes.
More hard Argo CD questions
- A PreSync migration Job reads its password from a Secret stored in the same Application. After the password is rotated in Git, the next sync fails authentication. Why?
- A PreSync hook Job sets ttlSecondsAfterFinished: 0 so finished Jobs vanish quickly. What problem can this cause during an Argo CD sync?
- What is a Sync Wave in Argo CD?
- How does Argo CD handle Kubernetes secrets?
- Which of the following is NOT a valid sync strategy in Argo CD?
- What is the purpose of resource hooks in Argo CD?