Mario Valderrama
6eabc41aee
etcdctl: add command to generate shell completion
...
To improve the UX of etcdctl. Completion is generated by cobra
according to defined commands and flags.
Fixes #13111
2021-06-22 13:29:23 +02:00
Piotr Tabor
00c6090110
Refactor common code from etcdctl (v2,v3) to pkg/corbautl.
...
Preparation for etcdutl split.
2021-05-14 14:16:53 +02:00
Lili Cosic
586b2383f4
etcdctl/ctlv3: Cleanup keys on signal interrupt of check perf
...
If ctc+c is pressed during the run of etcdctl check perf,
this deletes all the previously created keys that perf check created.
2021-04-29 12:55:36 +02:00
Saeid Bostandoust
a9c4301c1e
fix check datascale command for https endpoints
2021-04-16 03:51:04 +04:30
Piotr Tabor
e33c6dd9df
client/v3: Rename of imports
2020-10-20 10:13:06 +02:00
Piotr Tabor
de55bb6331
pkg: Rename imports after making 'pkg' a module
...
find -name '*.go' | xargs sed --follow-symlinks -i 's|go.etcd.io/etcd/v3/pkg/|go.etcd.io/etcd/pkg/v3/|g'
go fmt ./...
2020-10-13 00:09:27 +02:00
Brandon Philips
96cce208c2
go.mod: use go.etcd.io/etcd/v3 versioning
...
This change makes the etcd package compatible with the existing Go
ecosystem for module versioning.
Used this tool to update package imports:
https://github.com/KSubedi/gomove
2020-04-28 00:57:35 +00:00
Gyuho Lee
34bd797e67
*: revert module import paths
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-05-28 15:39:35 -07:00
shivaramr
9150bf52d6
go modules: Fix module path version to include version number
2019-04-26 15:29:50 -07:00
Sam Batschelet
a82703b69e
*: error strings should not end with punctuation or a newline (ST1005)
...
Signed-off-by: Sam Batschelet <sbatsche@redhat.com>
2019-01-08 21:04:20 -05:00
Gyuho Lee
d37f1521b7
*: update import paths to "go.etcd.io/etcd"
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-08-28 17:47:55 -07:00
Sahdev P. Zala
eff8166a45
Check: correct the memory limit
...
We should be doing 3M not 30 as it's said in the doc comment.
2018-06-05 09:46:56 -04:00
Sahdev P. Zala
8ba41d5191
etcdctl/check: create progress bar for datascale
...
Create a progress bar. The bar will show progress for a given workload.
Fixes #9328
2018-05-08 18:32:54 -04:00
Gyuho Lee
b44e43278a
etcdctl/ctlv3: fix "unconvert" warnings
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-30 15:32:16 -07:00
Gyuho Lee
bab0223f04
ctlv3: fix typo in check command
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-02-26 10:03:43 -08:00
Sahdev P. Zala
fc30b9844a
etcdctl/check: enable auto compact and defrag for check datascale
...
Running check datascale can create large history of keyspaces and
internal fragmentation. Allow user to run auto compact and defrag
when run check datascale.
2018-02-23 18:12:54 -05:00
Sahdev P. Zala
53d2a2edfe
etcdctl/check: create new check command for memory usage
...
Create a new command similar to check perf that can check the memory
consumption for putting different workloads on a given endpoint. If no endpoint
is provided, localhost will be used. Return user with a message that whether
there are enough memory for a given workload with pass or fail.
Fixed #9121
2018-02-17 12:01:31 -05:00
Gyuho Lee
d1e85570e9
ctlv3/command: auto compact and defrag after "check perf"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-02-15 14:28:02 -08:00
Gyu-Ho Lee
e80b2474fa
etcdctl/ctlv3: inherit/update flags only once in 'check' command
...
When creating multiple clients, 'mustClientFromCmd' overwrites
inherited flags with environment variables, so later clients
were printing warnings on duplicate key updates.
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-10-11 10:37:15 -07:00
Anthony Romano
887db5a3db
*: fix go tool vet -all -shadow errors
2017-06-03 21:32:36 -07:00
Xiang
60d3375599
etcdctl: add initial check perf command
2017-03-27 17:01:15 -07:00