Flux CD
Hard
Troubleshooting
A .sops.yaml has a rule with path_regex: .*\.yaml$ followed by a rule with path_regex: ^prod/.*\.yaml$. Which rule applies when you encrypt prod/db.yaml?
Select your answer:
Show answer and explanation
Answer: The first rule, because sops uses the first match
Explanation
sops checks creation_rules in order against the file path relative to the directory of .sops.yaml and stops at the first rule that matches. A broad rule at the top shadows everything below it, so specific rules have to come first.
More hard Flux CD questions
- What does the annotation kustomize.toolkit.fluxcd.io/ssa: IfNotPresent do on an object in a Flux source?
- 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?