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
consul-template and places where it is used (like Nomad template stanza) have methods like parseYAML, toYAML etc. However a few are missing that could make this much more useful:
mergeYAML -- merge 2 YAML objects allowing override leaf nodes of one with values of another. mergeMap[WithOverride] does not work here as YAML gets map[inertface{}]interface{}, but explode gets map[string]interface{}.
treeYAML -- read KV tree as YAML object, where standard YAML type inference is used. tree can be read, but it assumes everything is a string, for example with KV tree like config/app/key = 21 reading it as {{ tree "config/app" | toYAML }} will yield key: "21", which obviously is not what would be expected.
The text was updated successfully, but these errors were encountered:
Consul Template version
Request
consul-template and places where it is used (like Nomad template stanza) have methods like
parseYAML
,toYAML
etc. However a few are missing that could make this much more useful:mergeYAML
-- merge 2 YAML objects allowing override leaf nodes of one with values of another. mergeMap[WithOverride] does not work here as YAML getsmap[inertface{}]interface{}
, butexplode
getsmap[string]interface{}
.treeYAML
-- read KV tree as YAML object, where standard YAML type inference is used.tree
can be read, but it assumes everything is a string, for example with KV tree likeconfig/app/key = 21
reading it as{{ tree "config/app" | toYAML }}
will yieldkey: "21"
, which obviously is not what would be expected.The text was updated successfully, but these errors were encountered: