The key don't start with "/" can not find by remco
elysiumHL opened this issue · comments
lu han commented
config
log_format = "text"
[[resource]]
name = "disconf"
[[resource.template]]
src = "/root/remco/templates/t.tmpl"
dst = "/root/remco/t.yaml"
[resource.backend]
[resource.backend.etcd]
nodes = ["x.x.x.x:2379"]
keys = ["disconf","registry"]
watch = true
interval = 60
username = "xxxxx"
password = "xxxxx"
version = 3
t.tmpl
a
{% for i in gets("disconf/*") %}
key: {{i.Key}}
value: {{i.Value}}
{% endfor %}
b
{% for i in ls("disconf") %}
value: {{i}}
{% endfor %}
c
t.yaml
a
b
c
Rene Kaufmann commented
Could you try /disconf/*?
You can also try
{{ getallkvs() | toPrettyJSON }} to see all key value pairs.