k8wiz
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.

Read more about Flux CD