Flux CD
Hard
Troubleshooting
An ImageUpdateAutomation checks out main and pushes to flux-image-updates, which already exists from an earlier run. With default feature gates, what does the next push do?
Select your answer:
Show answer and explanation
Answer: Overwrites the branch with main plus the new changes
Explanation
The GitForcePushBranch feature gate is on by default, so the controller rebuilds the push branch from the checkout branch on every run and force pushes it. That keeps the branch current with main, and an open pull request just updates. With the gate set to false, updates are made on top of the existing commits, and a stale branch can make the automation fail until it is deleted or refreshed.
More hard Flux CD questions
- What does the annotation kustomize.toolkit.fluxcd.io/ssa: IfNotPresent do on an object in a Flux source?
- A change to an immutable field makes Flux's apply of a Job fail. Which annotation on the Job tells Flux to delete and recreate it?
- A GitRepository has no ref field, and the repository's default branch is main. What does Flux check out?
- kustomize-controller can't tell when a custom resource from a third-party operator is healthy. How do you teach it?
- You want to delete a Flux Kustomization but keep the workloads it created running. Which field do you set first?
- In a CI job, 'flux diff kustomization' exits with status 1. What does that mean?