Flux CD
Hard
Troubleshooting
A GitRepository has no ref field, and the repository's default branch is main. What does Flux check out?
Select your answer:
Show answer and explanation
Answer: The master branch, the default when no ref is set
Explanation
When spec.ref is empty, source-controller uses a branch named master. If the repository only has main, the GitRepository fails until you set ref.branch: main. flux bootstrap sets the branch for you, so this mostly catches hand-written GitRepository objects.
More hard Flux CD questions
- 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?
- A chart ships CRDs in its crds/ directory, and the HelmRelease has no crds settings. What happens to those CRDs on upgrade?
- How many Helm release revisions does helm-controller keep for a HelmRelease that doesn't set maxHistory?
- A HelmRelease sets upgrade.remediation.retries: 3 and nothing else under remediation. What happens between failed upgrade attempts?