-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
etcdctl complete delete wipe #10101
Comments
@vorburger does |
@hexfusion oh. Yeah - that seems to work great; thanks! |
vorburger
added a commit
to vorburger/opendaylight-etcd
that referenced
this issue
Sep 18, 2018
ETCDCTL_API=3 etcdctl del "*" --from-key=tru |
Thank you for this issue. var kvClient = client.getKVClient();
var end = OptionsUtil.prefixEndOf(ByteSequence.from(new byte[]{}));
DeleteResponse deleteResponse = kvClient.delete(
ByteSequence.from(ByteString.copyFromUtf8("*")),
DeleteOption.builder().isPrefix(true)
.withRange(end)
.build()
).get();
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For local testing, I find myself wanting to just completely "wipe" any data etcd from the CLI with etcdctl :
https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm-reset/ proposes this, but NOK:
Currently I do it like this, but this of course feels more like a workaround:
PS: Old and close #2385 had something similar, it seems.
The text was updated successfully, but these errors were encountered: