Flux CD
Medium
Concepts
A GitRepository sets both ref.branch: main and ref.tag: v1.2.0. Which one does Flux check out?
Select your answer:
Show answer and explanation
Answer: The tag, because tag takes precedence over branch
Explanation
When several ref fields are set, the later ones in the order branch, tag, semver, name, commit take precedence. commit pins an exact SHA and wins over everything else.
More medium Flux CD questions
- A Deployment keeps changing and you don't know which Flux object manages it. Which command tells you?
- A Kustomization must only be applied after another Kustomization that installs CRDs is ready. Which field do you set?
- What does spec.wait: true do on a Flux Kustomization?
- How do you substitute a per-cluster value such as ${cluster_region} into the manifests a Flux Kustomization applies?
- How does Flux decrypt Secrets that are stored encrypted with SOPS in Git?
- What does the --no-cross-namespace-refs=true flag on the Flux controllers do?