# kustomize build fails because a patch file sits outside the kustomization's directory. What does the default load restrictor require?

Kustomize, Medium (Advanced), Troubleshooting. https://k8wiz.com/uquiz/kustomize-build-fails-because-a-patch-file-sits-outside-the-kustomizations-directory-what-does-the-default-load-restrictor-requi

- A. Every referenced file must be listed in a .kustomizeignore file
- B. Every referenced file must be inside the kustomization's directory tree
- C. Every referenced file must be tracked by Git in the same repository as the overlay
- D. Every referenced file must use the .yaml extension, not .yml

**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.
