kustomize-controller icon indicating copy to clipboard operation
kustomize-controller copied to clipboard

Have Kustomize inject dynamic values via ConfigMap

Open tahirraza opened this issue 1 year ago • 1 comments

After building many K8 clusters via Kustomize/Flux, I feel there are ways we can reduce the number of overlays for a given cluster or application.

If a base manifest can leverage reading values lets say spec.container[0].image via configMap key/value file, it would eliminate the need for an overlay directory.

Consider creating an entire Kubernetes cluster with base manifests and then think about the overlays everytime you build a new cluster? So creating a ConfigMap with default values in base, and then ConfigMap for the new cluster or an application can simplify many complicated usecases.

I do not know if this can be handled by Kustomize or Kustomize-Controller at this point.

tahirraza avatar Jan 16 '23 13:01 tahirraza