Kustomize
Medium
Troubleshooting
kustomize build fails because a patch file sits outside the kustomization's directory. What does the default load restrictor require?
Select your answer:
Show answer and explanation
Answer: Every referenced file must be inside the kustomization's directory tree
Explanation
The default, LoadRestrictionsRootOnly, stops a kustomization from reading files outside its own tree. resources can still point at another directory that has its own kustomization file. '--load-restrictor LoadRestrictionsNone' turns the check off, which is best avoided.
More medium Kustomize questions
- How do you generate a TLS Secret with Kustomize?
- What does sortOptions.order: fifo change in the build output?
- What does generatorOptions.disableNameSuffixHash: true change?
- How can you see what kubectl apply -k would change in the cluster before applying it?
- Can a kustomization include a Helm chart?
- What does kustomize edit fix do?