This repo contains a demonstration of Kustomizing values of a Helm chart that is being deployed via the Kustomize Helm Chart inflator by generating the HelmChartInflationGenerator
via a separate kustomization. This repo is structured as follows
-
envs/
base/
- Create a namespacepatches/
demo1/
- Point tohelm/base
as agenerator
demo2/
- Create a serviceAccount namedkustomize-created
, and points tohelm/patches/demo2
as agenerator
-
helm/
- base and patches forHelmChartInflationGenerator
base/
- Points to hello-world chart, setsvaluesInline
: image.tag to1.15
patches/
demo2
- setsvaluesInline
: serviceAccount.createfalse
, serviceAccount.name:kustomize-created
kustomize build envs/patches/demo1 --enable-helm > results/demo1.yaml
- Namespace
- Hello-world helm chart resources
1.15
image version on the deployment- hello-world serviceAccount created by the helm chart
kustomize build envs/patches/demo2 --enable-helm > results/demo2.yaml
- Namespace
- Hello-world helm chart resources
1.15
image version on the deployment- No hello-world serviceAccount
kustomize-created
serviceAccount with labelapp.kubernetes.io/managed-by: Kustomize
- deployment points to this replacement serviceAccount