roboll / helmfile

Deploy Kubernetes Helm Charts
MIT License
4.04k stars 566 forks source link

Read values in gotmpl from the configmap in k8s #813

Open shikhar7 opened 5 years ago

mumoshu commented 5 years ago

@shikhar7 Hey!

It's technically possible. But could you elaborate a bit more on your use-case?

Shouldn't you be using K8s secrets as the source, at least, if you're reading creds? Why you wont use helm-secrets, Vault, SSM, SecretsManager and so on?

amnk commented 2 years ago

Ok, I am not the only one :D ...

@mumoshu My personal use case for this is a pipeline of value from provisioner to Helm. For example, consider two environments: in one dependencies are provisioned via Google's ConfigConnector (more dynamic), in another - via Terraform (more static). I still need to pass those down to Helm values somehow. And Kubernetes ConfigMaps (with Secrets) seems like a universal approach to this, without any cloud dependency.

mumoshu commented 2 years ago

@amnk Thanks for the explanation. That makes sense! Probably this feature request would be in scope of https://github.com/variantdev/vals, the library which is used by helmfile to provide access to various remote values backends.