Open brow86 opened 2 months ago
We are interested in this issue, but we’re unsure about the use case and the traction it will receive. We are going to leave the status as kind/proposal to give the community time to let us know if they would like this idea.
We will reevaluate as people respond.
Welcome!
What version of the Traefik's Helm Chart are you using?
31.0.0
What version of Traefik are you using?
v3.1.2
What did you do?
I'm using Hashicorp Vault injection which uses annotations on pods to inject secrets into files on pod startup. The hope was to use this functionality via the
_FILE
env var in the credentials section as described in the lego docs. In other words, after putting the secret into Hashicorp Vault, I would like to annotate the traefik pod like so in the helm chart:This would inject a file into
/vault/config/cloudflare
that I could then reference via setting an env var,CF_DNS_API_TOKEN_FILE
to that value and keep it up-to-date with Vault. The expectation, like other popular charts, is that the above values would render.What did you see instead?
The chart errors out during templating:
To reproduce:
What is your environment & configuration?
Platform: microk8s v1.27.16 Arguments: --values YAML:
Chart version: 31.0.0 appVersion: v3.1.2 helm version: v3.15.4
Additional Information
Right now I see two options: the clean option or the safe option. For the clean option, the
tpl
function here is removed entirely and swapped towith
but that may have unintended consequences. For the safe option, there is a new boolean introduced and defaulted to current path of using thetpl
function while providing a switch,templateAnnotations
below, to disable it:With an the default set as the existing behavior:
For the PR I would assume going with the safe option but I would defer to one of the traefik folks if there are opinions. Thanks in advance.