What's the difference between kustomization and component
- 2 minutes read - 217 wordsThe real differences is quoted here. You can find the content here
A kustomization that is marked as a Component has basically the same capabilities as a normal kustomization. The main distinction is that they are evaluated after the resources of the parent kustomization (overlay or component) have been accumulated, and on top of them. This means that: A component with transformers can transform the resources that an overlay has previously specified in the resources field. Components with patches do not have to include the target resource in their resources field. Multiple components can extend and transform the same set of resources sequentially. This is in contrast to overlays, which cannot alter the same base resources, because they clone and extend them in parallel.
I have doubt what’s the difference kustomization and component in kustomize. However I couldn’t find answers about that in kustomize official website and even after I searched google many times in the past.
Today I re-read Demo: Components and noticed that "Overlays that combine more than one features define patches for resources whose content is not dedicated to a single feature.". I am using "kustomize kind: Component vs kustomization" as keywords and found Support composition in kustomize and Kustomize Components
The Kustomize Components document also gives rationale for components field and Component kind.