k8wiz
Kustomize
Hard
Concepts

Why can a component patch resources defined in the overlay that includes it, when a base can't?

Select your answer:

Show answer and explanation

Answer: A base builds alone; a component runs against whatever includes it

Explanation

A base is a self-contained build, so its patches can only touch its own resources. A component is merged into the kustomization that lists it, so it can patch objects from the base or the overlay. That's why components suit optional features shared by several overlays.