Flux CD
Hard
Concepts
What does the annotation kustomize.toolkit.fluxcd.io/ssa: IfNotPresent do on an object in a Flux source?
Select your answer:
Show answer and explanation
Answer: Flux creates the object if it doesn't exist and never updates it afterwards
Explanation
IfNotPresent suits objects that other controllers change after creation, such as Secrets and webhook configurations that cert-manager fills in. Merge keeps fields added by other tools when they don't overlap, Ignore skips the object, and the default, Override, applies the state from the source.
More hard Flux CD questions
- A change to an immutable field makes Flux's apply of a Job fail. Which annotation on the Job tells Flux to delete and recreate it?
- A GitRepository has no ref field, and the repository's default branch is main. What does Flux check out?
- 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?