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

The "watch" not triggered when the watch key not start with "/" #37

Open
nengc opened this issue May 7, 2024 · 1 comment
Open

The "watch" not triggered when the watch key not start with "/" #37

nengc opened this issue May 7, 2024 · 1 comment

Comments

@nengc
Copy link

nengc commented May 7, 2024

What happened?

When i set the watch key as "/etcd-test", and put value to the key "/etcd-test", the watch worked. But when i remove the "/", the watch will not triggered.

image

What did you expect to happen?

With ETCD server, watching without prefix "/" key will work. But not work when using kubebrain.

How can we reproduce it (as minimally and precisely as possible)?

Using etcd client v3

Software version

$ <software> version
# paste output here
@divanodestiny
Copy link
Collaborator

divanodestiny commented May 9, 2024

@nengc kubebrain is not fully compatible with etcd3. we assert that apiserver will not watch without prefix "/".

we hacks that when etcd client send watch request without prefix "/", kubebrain process it as streaming list request. it is used to return a KV list through grpc stream to apiserver instead of paged list request for better performance and less cost.

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

No branches or pull requests

2 participants