I would like to group consul service by tags, using the below:
{{range services}}
{{range $tag, $services := service .Name | byTag }}
{{if or (eq $tag “Volkswagen”) }}
{{ range $services }}
{{ $tag}}
{{ .Name }}
{{ end }}{{ end }}{{end}}{{end}}
Output:
Volkswagen
Golf
Volkswagen
BUW
I d like it to be:
Volkswagen is the tag:
Volkswagen
Golf
BUW
consul-template v0.29.0 (34ada7a)
Thanks