THe version of kustomize being using is v2.1, can be installed with Homebrew:
brew install kustomize
You will also need (the go version of) yq installed, available from here (https://mikefarah.github.io/yq/])
Create a convienience function that points to the root of this cloned repo (must be cloned in to folder called "qliksense")
function kustomizeIt {
XDG_CONFIG_HOME="<Root of this repo>" \
kustomize build --enable_alpha_plugins \
"<Root of this repo>"/$1
}
Then you can run
kustomizeIt .
The values.yaml
file is now multiple resource declarations (kind: HelmValues
) that are used to "transform" the resource that generates the helm charts (kind: HelmChart
).
These resources are declared in the individual component github repositories that are pulled in as resources transformed by adding the values
in (kind: HelmValues
), then excuted as generators which expand the helm charts.
The pipeline in kustomize is file system tree order. So the parent kustomization.yaml file operates on resources generated by kustomization.yaml files in child directories. The values.yaml
is now found in generators/qliksense/transformers/defaultvalues.yaml
You will also fine an example patch file for values in generators/qliksense/transformers