Standardize on `patchesStrategicMerge` and `patchesJSON6902` instead of
`patches` in kustomization files.
Also, add example commands to create local input files for existing
SecretGenerators.
Signed-off-by: Ioannis Androulidakis <ioannis@arrikto.com>
Since the required implementation for the components example has not
been merged yet, we must inform the users that this example is a work in
progress.
Signed-off-by: Alex Pyrgiotis <apyrgio@arrikto.com>
Slightly alter the reCAPTCHA component to use a `configMapGenerator`,
instead of patching the base `ConfigMap` as in the rest of the
components, to show that this is supported as well.
Incorporate the suggestion of the separate "components" field, that will
hold references to resources of `Component` kind. Also, add a missing
reference to the base, in the Kustomization files of the variants.
The main change in this commit is that we rename the
`KustomizationPatch` kind to `Component`, and use the appropriate group
and API version (`kustomize.config.k8s.io/v1alpha1`).
Describe in more detail the solution with stock kustomize variants to
better showcase the benefits of kustomize components.
Plus, revamp certain parts of the example with minor fixes.