Hello,
I have troubles iterating over service.tag.
This doesn't work:
{{ range service "helloworld.prod" }}
{{ .Address }}:{{ .Port }} {{ .Tags }}
{{ end }}
This does work:
{{ range service "helloworld" }}
{{ if .Tags | contains "prod" }}
{{ .Address }}:{{ .Port }} {{ .Tags }}
{{ end }}
{{ end }}
helloworld has instances with only [prod] or with [prod foo] tags, the output of second template looks like:
x.x.x.x:a [foo prod]
y.y.y.y.b [prod]
Any ideas on what I am doing wrong?
Consul server is v0.6.3, consul-template is v0.15.0
Thanks!
Ivan