k8wiz
Kustomize
Medium
Troubleshooting

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

Select your answer:

Show answer and explanation

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.

Read more about Kustomize