traefik-config-validator icon indicating copy to clipboard operation
traefik-config-validator copied to clipboard

[FEATURE] Validation of dynamic config using Go templates

Open NReilingh opened this issue 3 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Feature description

Traefik dynamic configuration using the File provider supports Go Templating. My sense is that this tool does not currently support validating dynamic configuration that uses template syntax.

Assuming this is correct, perhaps this should be called out in the docs?

Not sure what kind of lift this would take, but just wanted to call it out for discussion. I use go templating in my traefik config, and would definitely like to be able to validate these files before I commit or deploy them. However, I could also see this be more appropriately built into traefik itself, similar to how the apachectl configtest command works with Apache.

Anything else?

No response

NReilingh avatar Apr 28 '22 18:04 NReilingh

Hey @NReilingh, thanks for pointing that out.

Indeed, we do not support dynamic templated configuration. For starters, we will include a hint in the next release that Go templating is not (yet) supported. Afterwards, we will discuss internally if we are planning to support templated configurations as well - at OTTO we are not yet using them so this may not be implemented in the near future.

If you have any ideas or points you would like to discuss on this feature we would love to hear from you!

thomasklinger1234 avatar May 05 '22 17:05 thomasklinger1234