Hi,
I am not very familiar with golang template so this might be real easy to answer :)
I have following etcd structure:
/app/customer1/dev
/app/customer1/test
/app/customer2/dev
/app/customer2/test
I would like to read values for all customers, so I am looking for the way to loop through these in confd template.
I've started with following:
{{ $path := "/app/" }}
{{ range ls $path }}
{{$customer := .}}
customer: {{join $path, $customer}}
{{end}}
My problem is that join is not working for me, I have version 0.7.1, not sure if its merged in this version already.
Is there simpler way to iterate through such structure?
Thanks,
Jakub