Flux CD
Medium
Concepts
Which file in a Git repository tells source-controller to leave files out of the artifact it builds?
Select your answer:
Show answer and explanation
Answer: .sourceignore
Explanation
A .sourceignore file uses .gitignore syntax, and the GitRepository's spec.ignore field does the same from the cluster side. Leaving out CI workflows and docs matters when a Kustomization would otherwise try to apply every YAML file under its path.
More medium Flux CD questions
- How can a HelmRelease install a chart that is stored in an OCI registry?
- A GitRepository sets both ref.branch: main and ref.tag: v1.2.0. Which one does Flux check out?
- 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?