You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BUT, as you can see, quite a bit of a hack is required (template ANY ANY) in order to use the template plugin syntax appropriately. This is because of two reasons.
The first reason is that the template plugin syntax is newline sensitive, so we cannot just stuff everything into a single line using parameters (which would be a bit of a hack in of itself).
The second is that configblock, the only current way in the chart to insert multiline, automatically inserts a bracket after the plugin name. This works for a lot of plugins, I assume (I'm kind of new to CoreDNS), but it does not work for this one. It will give you an error for invalid syntax instead.
I'm not exactly sure the recommended restructuring of plugin templating based on this, but I imagine removing the preceding bracket is a breaking change, so perhaps introduction of another field is a viable option for those of us who want to use the coredns template plugin and configure it in values without this dirty hack
The text was updated successfully, but these errors were encountered:
Given a simple helm values that looks like this:
If you can see, we get a nice Corefile templated out from that, that is appropriate
BUT, as you can see, quite a bit of a hack is required (template ANY ANY) in order to use the template plugin syntax appropriately. This is because of two reasons.
parameters
(which would be a bit of a hack in of itself).I'm not exactly sure the recommended restructuring of plugin templating based on this, but I imagine removing the preceding bracket is a breaking change, so perhaps introduction of another field is a viable option for those of us who want to use the coredns template plugin and configure it in values without this dirty hack
The text was updated successfully, but these errors were encountered: