smallstep / helm-charts

Helm packages for Kubernetes
Apache License 2.0
49 stars 72 forks source link

[step-certificates] Make pod template customizable #86

Open zerodayyy opened 2 years ago

zerodayyy commented 2 years ago

In my case, I need to set extra environment variables with Azure credentials to avoid attaching certain roles to the whole Kubernetes node. Also one might need to set labels, annotations (as in #83), provide extra arguments to the binary, mount extra volumes etc.

Usually, Helm charts provide a way to inject these using values, for example see traefik, nginx charts.

It would be great if step-certificates chart provided a way to manipulate pod template without the need to fork and modify the chart.

maraino commented 2 years ago

Hi @zerodayyy, using the last version from the master branch you can already inject environment variables like Azure credentials. See: https://github.com/smallstep/helm-charts/blob/e37bbcdd4b8f8c44648ee9261d6fd5ae5e84a57b/step-certificates/templates/ca.yaml#L68-L70

Regarding labels, annotations, volumes, ... all of them can be added. Some of our projects already support some those extra configurations.

And of course, we would appreciate PRs adding support to some of these.

PS: Let me know if you need a new release of the step-certificates chart to add the new environment variables.