etcdkeeper icon indicating copy to clipboard operation
etcdkeeper copied to clipboard

Keys on the root path not shown

Open ihostage opened this issue 6 years ago β€’ 5 comments

Etcdkeeper shows only keys that have a prefix "/".

7aaa24e175

Expected: show all keys.

$ etcdctl get / --keys-only=true --prefix
/skydns
/skydns/...
...
$ etcdctl get "" --keys-only=true --prefix
/skydns
/skydns/...
...
backend-encrypted
config/iam/...

ihostage avatar Nov 22 '19 12:11 ihostage

If the key is not built according to the directory form, the changes are a bit large. There is a tree button click to change the mode of viewing the key.

evildecay avatar Nov 27 '19 01:11 evildecay

@evildecay etcdkeeper does not show these keys in any mode. He ignores them because they do not start from /.

Test case:

  1. Put any key without / as the first symbol
etcdctl put foo bar
  1. etcdkeeper do not show a foo

ihostage avatar Nov 27 '19 08:11 ihostage

I see what you mean. Generally, configuration management uses a directory as a hierarchical structure to store data, such as zookeeper and etcdv2. So never consider the key-value way to store data. I can improve the display of keys in key-value mode. dir-mode I have time and I will consider displaying correctly.

evildecay avatar Nov 28 '19 09:11 evildecay

Generally, configuration management uses a directory as a hierarchical structure to store data

As it turned out, not all 😞It was a surprise for me too πŸ€·β€β™‚

ihostage avatar Nov 28 '19 12:11 ihostage

Bummer, I thought I had a bug in my code for a long time πŸ˜„

cemremengu avatar May 19 '20 08:05 cemremengu