Flux CD
Medium
Integration
Which Flux objects work together to update an image tag in Git when a new version is pushed to a registry?
Select your answer:
Show answer and explanation
Answer: ImageRepository, ImagePolicy and ImageUpdateAutomation
Explanation
image-reflector-controller scans registry tags for each ImageRepository and picks the newest allowed tag for each ImagePolicy. image-automation-controller's ImageUpdateAutomation then edits the marked fields in Git and commits, and Flux applies that commit like any other.
More medium Flux CD questions
- How does image-automation-controller know which field in a YAML file to update?
- An ImagePolicy should pick the newest 1.x release tag and ignore 2.0 and later. Which policy fits?
- How can a push to Git make Flux fetch the new commit right away instead of waiting for the GitRepository interval?
- Which Flux setup reports deployment results back to GitHub as commit statuses?
- You delete a Flux Kustomization that has prune: true and no deletionPolicy. What happens to the objects it applied?
- Which file in a Git repository tells source-controller to leave files out of the artifact it builds?