Skip to content

Commit 5c31281

Browse files
committed
Add friendly name to example etcd template
1 parent 4550e22 commit 5c31281

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

templates/etcd.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
{{range $key, $value := .}}
66
{{ with $address := index $value.Addresses 0 }}
7+
# {{ $value.Name }}
78
curl -L http://127.0.0.1:4001/v2/keys/backends/{{ $value.Image.Repository}}/{{printf "%.*s" 12 $value.ID}} -XPUT -d value="{{ $address.IP }}:{{ $address.Port }}" -d ttl=15
89
{{ end }}
910
{{end}}

0 commit comments

Comments
 (0)