Argo CD
Hard
Troubleshooting & Debugging
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?
Select your answer:
Show answer and explanation
Answer: The hook runs before the Sync phase updates the Secret
Explanation
A Secret without a hook annotation belongs to the Sync phase, which starts only after every PreSync hook has succeeded. The migration Job therefore still sees the old password. Keep hook credentials outside the Application, or make the Secret a hook too with a lower sync wave so it lands first.
More hard Argo CD questions
- 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?
- What is the purpose of the ApplicationSet controller in Argo CD?