traefik-helm-chart icon indicating copy to clipboard operation
traefik-helm-chart copied to clipboard

Support templating in IngressRoute annotations

Open aacebedo opened this issue 6 months ago • 1 comments

Welcome!

  • [x] Yes, I've searched similar issues on GitHub and didn't find any.
  • [x] Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What do you want to achieve with this Chart ?

I would like to add annotation on the dashboard ingressroute and to ease the generation, I would like to use a template. Currently it seems not working, for instance when I do that

ingressRoutes:
  dashboard:
     annotations:
            gethomepage.dev/widget.url: "http://{{.Release.Name}}.{{.Release.Namespace}}:{{.Values.ports.traefik.port}}"

The templated values are not replaced. Is there a way to change this ?

aacebedo avatar Jul 09 '25 20:07 aacebedo

Hello @aacebedo,

It's not implemented but it's a feature that can be added by using tpl in https://github.com/traefik/traefik-helm-chart/blob/master/traefik/templates/ingressroute.yaml Feel free to open PR if you need it.

mloiseleur avatar Jul 30 '25 15:07 mloiseleur