Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keys on the root path not shown #33

Open
ihostage opened this issue Nov 22, 2019 · 5 comments
Open

Keys on the root path not shown #33

ihostage opened this issue Nov 22, 2019 · 5 comments
Labels

Comments

@ihostage
Copy link

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/...
@evildecay
Copy link
Owner

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.

@ihostage
Copy link
Author

ihostage commented Nov 27, 2019

@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

@evildecay
Copy link
Owner

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 evildecay added the bug label Nov 28, 2019
evildecay pushed a commit that referenced this issue Nov 28, 2019
@ihostage
Copy link
Author

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 🤷‍♂

@cemremengu
Copy link

Bummer, I thought I had a bug in my code for a long time 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants