Open woowil opened 3 years ago
Hi @woowil, thanks for the feature request. I can see this being useful. If you're interested in contributing this, we'll be happy to review it. If not we're tracking this internally and will add it at some point.
Thanks!
Hi. Just tell me what/how I can contribute other than what I have suggested as a solution in the files. I hope this can be added in the next release.
Is your feature request related to a problem? Please describe. Our Kubernetes cluster is configured to use a mandated and dedicated pod security policy service account for all deployments, statefulsets, psp and role bindings, and cluster role bindings. The current helm-vault version has a configuration option for the server (statefulset) service account , but not for the injector service account.
As you can see, the vault-agent-injector is in an un-ready state since the injector binding resources use a hardcoded service account for the vault agent injector, which further has no access in the cluster. Therefore, all injections fail. My only option here is to download the latest vault-hrlm branch/tags, edit the template files, and install. This is a cumbersome approach in our CI/CD pipelines for every news version since I must check out the repo locally and tweak the files. I want to be able to use
helm repo add
and helm install with a custom values file, also when PSP is imposed in the cluster for service accounts.Describe the solution you'd like The solution is to do a similar update as implemented for the
server.serviceaccount
, e.g updating the files _helpers.tpl, injector-serviceaccount.yaml, injector-deployment.yaml, injector-clusterrolebinding.yaml and injector-psp-rolebinding.yaml