ciis0 / ciis0.github.io

https://ciis0.de/
0 stars 1 forks source link

kustomize generator plugin vs generated resources via wrapper #9

Open ciis0 opened 1 year ago

ciis0 commented 1 year ago

generator = exec via ~/.kustomize/plugin/... + generator spec in kustomization YAMLs

wrapper = script that wraps generate resources (which are referenced in kustomizations via resources) and the runs kustomize

ciis0 commented 1 year ago

with a wrapper we need a Config Management Plugin in ArgoCD which does not seem to reliably work for argocd sync --local. but for testing we use kapp anyway.

with a plugin we have kustomize.config.k8s.io/needs-hash, but can generate files + a configMapGenerator spec YAML and reference the yaml via generators.