18eb5c6881
Merge pull request #18748 from mmorel-35/golangci-lint/gofumpt
...
fix: enable gofumpt instead of gofmt linter in client
2024-10-25 12:25:33 +01:00
906247c8f9
fix: enable gofumpt instead of gofmt linter in client
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-10-17 22:29:59 +02:00
b281a3c4fa
fix: enable errorlint in api, client and pkg
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-10-13 19:43:20 +02:00
33d7f2d53e
fix: enable gofmt and whitespace linters
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-10-11 07:03:18 +02:00
24ff469d4b
Merge pull request #16333 from serathius/kubernetes
...
Introduce Kubernetes interface to etcd client
2024-07-23 16:43:02 +02:00
6c98a96866
Introduce Kubernetes KV interface to etcd client
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2024-07-23 14:53:09 +02:00
4286d6fdf7
client/v3/watch.go: use fmt for metadata printing
...
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com >
2024-07-10 12:51:48 +03:00
578b784dcd
client: address golangci var-naming issues
...
Signed-off-by: Ivan Valdes <ivan@vald.es >
2024-03-14 20:47:32 -07:00
617f1df443
Remove string dependent error handling in watch and auth
...
Signed-off-by: Hitoshi Mitake <h.mitake@gmail.com >
2024-02-06 19:25:53 +09:00
36fc3cae65
clientv3: correct the nextRev on receving progress notification response
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2023-02-10 09:09:19 +08:00
9e1abbab6e
Fix goimports in all existing files. Execution of ./scripts/fix.sh
...
Signed-off-by: Piotr Tabor <ptab@google.com >
2022-12-29 09:41:31 +01:00
d0e753ca86
clientv3: define local variables errMsgGRPCInvalidAuthToken and errMsgGRPCAuthOldRevision to cache gRPC error messages
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-12-13 07:28:59 +08:00
19dc0cb413
client: enhance the function shouldRetryWatch and added unit test
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-12-13 06:05:02 +08:00
95c520976a
client: Use func without format
...
Signed-off-by: Sasha Melentyev <sasha@melentyev.io >
2022-11-15 01:02:24 +03:00
428fb9623a
client/v3: Add backoff before retry when watch stream returns unavailable
...
The client retries connection without backoff when the server is gone
after the watch stream is established. This results in high CPU usage
in the client process. This change introduces backoff when the stream is
failed and unavailable.
Signed-off-by: Hisanobu Tomari <posco.grubb@gmail.com >
2022-10-08 06:57:30 +09:00
f1d4935e91
*: avoid closing a watch with ID 0 incorrectly
...
Signed-off-by: Kafuu Chino <KafuuChinoQ@gmail.com >
add test
2022-09-26 20:30:33 +08:00
2dcfa83094
*: handle auth invalid token and old revision errors in watch
...
Signed-off-by: Hitoshi Mitake <h.mitake@gmail.com >
2022-09-17 21:51:36 +09:00
68b1e9f728
check resuming len to avoid panic
2021-05-12 09:51:59 +08:00
8a7f15511c
clientv3: Move to client/v3 (just file move)
...
Mechanical:
% git mv clientv3 client/v3
% git mv client/mock client/v3/
2020-10-20 10:08:35 +02:00