# An overlay lists a component directory under resources instead of components. What happens when you build it?

Kustomize, Medium (Advanced), Troubleshooting. https://k8wiz.com/uquiz/an-overlay-lists-a-component-directory-under-resources-instead-of-components-what-happens-when-you-build-it

- A. Kustomize treats it as a base and builds it in its own accumulator
- B. Kustomize moves it to components and prints a warning
- C. The build fails with an error saying the kind must not be Component
- D. The component is skipped and the rest of the overlay builds normally

**Answer:** The build fails with an error saying the kind must not be Component

**Explanation:** Kustomize checks each directory's kind against the field it's listed in. A directory of kind Component under resources fails with "expected kind != 'Component' for path ...". Components only work from the components field, where they run on the overlay's gathered resources.
