Anthony Romano
525fbba1bd
etcdctl3: update to use RequestV2 instead of Request
2017-08-31 11:47:40 -07:00
Gyu-Ho Lee
1f20d5d924
etcdctl/ctlv3: add 'lease list' command
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-08-14 14:18:57 -07:00
Anthony Romano
04413454ac
Merge pull request #8370 from jiaxuanzhou/lock_cmd
...
etcdctl: add ttl flag for lock command
2017-08-09 10:04:32 -07:00
Zhou
9c21eefd09
etcdctl: add ttl flag for lock command
2017-08-09 22:04:43 +08:00
Joe Betz
39432ac31f
etcdctlv3: Add option to defrag a data directory directly, for cases where etcd is not running.
2017-08-08 10:19:32 -07:00
Gyu-Ho Lee
5176b63fa0
ctlv3: add 'endpoint hashkv' command
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-08-05 18:17:06 -07:00
Gyu-Ho Lee
9040b3eb2b
ctlv3/command: remove double-quote typos in fields printer
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-08-01 17:21:15 -07:00
Gyu-Ho Lee
073fa562d8
Merge pull request #8342 from gyuho/ep-exit
...
ctlv3: exit non-zero on unhealty ep command
2017-07-31 15:45:30 -07:00
Dima Kurguzov
6603a77561
ctlv3: exit non-zero on unhealty ep command
2017-07-31 14:17:01 -07:00
Anthony Romano
79660db61b
etcdctl: add lease comparison to txn command
2017-07-31 13:00:04 -07:00
Gyu-Ho Lee
98fc5e5769
ctlv3: print 'ETCD_INITIAL_ADVERTISE_PEER_URLS' in 'member add'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-07-28 13:53:13 -07:00
fanmin shi
bb0e144b43
etcdctl: print "del" instead of "delete" in txn interactive mode
2017-07-21 14:31:39 -07:00
Anthony Romano
28b4dce4f1
etcdctl: remove extra space in error message
...
Fprintln will insert a space between arguments, so printing "Error: "
would lead to two spaces between the "Error:" and the error string.
2017-07-13 13:04:21 -07:00
Gyu-Ho Lee
2e7615281e
Merge pull request #8210 from gyuho/bbolt
...
*: use 'coreos/bbolt' (replace 'boltdb/bolt')
2017-07-06 13:00:21 -07:00
Gyu-Ho Lee
318e9c766f
*: replace 'boltdb' import paths with 'coreos/bbolt'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-07-05 14:32:13 -07:00
Gyu-Ho Lee
6e9b776fce
etcdctl/ctlv3: add 'move-leader' command
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-06-23 13:19:12 -07:00
Gyu-Ho Lee
f2d8929a09
etcdctl/ctlv3: remove unnecessary 'return'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-06-22 12:24:00 -07:00
Anthony Romano
1a2be432c5
etcdctl: --cluster flag using cluster endpoints for endpoint commands
...
Queries the cluster for endpoints to use for the endpoint commands.
Fixes #8117
2017-06-21 13:55:23 -07:00
Anthony Romano
887db5a3db
*: fix go tool vet -all -shadow errors
2017-06-03 21:32:36 -07:00
Anthony Romano
643c2a310d
etcdctl: support exec on lock
...
The lock command is clumsy to use from the command line, needing mkfifo,
wait, etc. Instead, make like consul and support launching a command if
one is given.
2017-05-24 16:47:00 -07:00
Anthony Romano
f75e333264
Merge pull request #7958 from heyitsanthony/perm-prefix
...
etcdctl: improve role --prefix flag
2017-05-22 12:19:16 -07:00
Hitoshi Mitake
939912c425
clientv3, etcdserver: support auth in Watch()
2017-05-20 11:34:45 +09:00
Anthony Romano
bd680c3302
ctlv3: add --prefix support to role revoke-permission, cleanup role flag handling
2017-05-19 13:53:46 -07:00
Gyu-Ho Lee
e15020055e
*: remove unnecessary fmt.Sprint
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-05-15 13:23:31 -07:00
Anthony Romano
6dd8fb6f24
Revert "Merge pull request #7732 from heyitsanthony/lease-err-ka"
...
This reverts commit fbbc4a4979b256125d2238f6325ad86e7f1b58bd, reversing
changes made to f254e383859a2939d5929346f6595549f424f7c5.
Fixes #7851
2017-05-02 09:36:16 -07:00
Anthony Romano
70f0bbe38c
etcdcdtl: use new lease interface
2017-04-24 23:49:44 -07:00
Anthony Romano
cf8c66c9f0
ctlv3: use printer for lease command results
...
Fixes #7783
2017-04-20 09:41:04 -07:00
Anthony Romano
fcd4871e2a
ctlv3: keep lease as integer in fields printer
...
Output was giving %!d(string=) instead of the expected lease ID
value.
2017-04-19 00:48:13 -07:00
Hitoshi Mitake
8efc42e25f
etcdctl: show responses of auth RPCs if --write-output=fields is passed
2017-04-14 11:48:42 +09:00
Anthony Romano
7e05b33aa0
*: remove os.Kill from signal.Notify
...
Clears SA1016 in staticcheck
2017-04-07 10:52:54 -07:00
Gyu-Ho Lee
7388911e0c
ctlv3: add '--debug' flag (to enable grpclog)
...
By default, grpclog is disabled. It should be configurable
for debugging purposes, as we did in v2.
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-04-05 17:11:31 -07:00
Hitoshi Mitake
0a7fc7cd34
etcdctl: add a new option --from-key for unlimited range permission
...
This commit adds a new option --from-key to the command etcdctl role
grant-permission. If the option is passed, an open ended permission
will be granted to a role e.g. from start-key to any keys those are
larger than start-key.
Example:
$ ETCDCTL_API=3 bin/etcdctl --user root:p role grant r1 readwrite a b
$ ETCDCTL_API=3 bin/etcdctl --user root:p role grant --from-key r1 readwrite c
$ ETCDCTL_API=3 bin/etcdctl --user root:p role get r1
Role r1
KV Read:
[a, b) (prefix a)
[c, <open ended>
KV Write:
[a, b) (prefix a)
[c, <open ended>
Note that a closed parenthesis doesn't follow the above <open ended>
for indicating that the role has an open ended permission ("<open
ended>" is a valid range end).
Fixes https://github.com/coreos/etcd/issues/7468
2017-04-04 17:28:59 +09:00
Xiang Li
65ad91b14d
Merge pull request #7591 from xiang90/validate
...
etcdctl: add initial check perf command
2017-03-27 17:23:58 -07:00
Xiang
60d3375599
etcdctl: add initial check perf command
2017-03-27 17:01:15 -07:00
Anthony Romano
7ef75e373a
Merge pull request #7525 from heyitsanthony/big-backend
...
etcdserver, backend: configure mmap size based on quota
2017-03-23 10:06:00 -07:00
Gyu-Ho Lee
aca2abd8fe
*: use 'io.Seek*' for go1.7+
...
For https://github.com/coreos/etcd/issues/6174 .
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-03-20 15:15:24 -07:00
Anthony Romano
5e4b008106
*: base initial mmap size on quota size
2017-03-17 15:38:49 -07:00
Anthony Romano
2f1542c06d
*: use filepath.Join for files
2017-03-16 07:46:06 -07:00
Anthony Romano
3e86779ad5
ctlv3: ensure synced member list before printing env vars on member add
...
In cases of multiple endpoints, it's possible member add would get a its
member list from a member that has not yet recognized the membership
update. Instead, confirm that the member list response is from the
member that acked the member add or from a member that has synced
with the cluster following the member add.
Fixes #7498
2017-03-14 20:01:44 -07:00
Anthony Romano
d1dcc828c8
etcdctl: support mvcc txn
2017-03-08 20:54:15 -08:00
Gyu-Ho Lee
3d75395875
*: remove never-unused vars, minor lint fix
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-03-06 14:59:12 -08:00
Anthony Romano
ad45958841
etcdctl: correctly batch revisions in make-mirror
...
Fixes #7410
2017-03-02 14:30:24 -08:00
sharat
84a81d8caf
ctlv3: add '--ignore-lease' flag to put command
2017-01-25 03:11:19 +05:30
Gyu-Ho Lee
ce9f73a34c
ctlv3: right-align the table output
2017-01-24 11:41:47 -08:00
Xiang Li
96e0f50673
etcdctlv3: snapshot restore works with lease key
2017-01-20 09:37:39 -08:00
Armstrong Li
b8e9bd2b42
ctlv3: print cluster info after adding new member
2017-01-17 09:52:38 -08:00
Gyu-Ho Lee
e03850c4ac
ctlv3: add '--ignore-value' flag to 'put' command
2017-01-13 15:13:18 -08:00
Anthony Romano
d20f23c795
etcdctl: create root role on auth enable if it does not yet exist
...
Kind of tedious to add the root role when enabling auth; can just add
it automatically.
2017-01-09 16:18:13 -08:00
Anthony Romano
154f268031
Merge pull request #7001 from heyitsanthony/etcdctl-doc
...
etcdctl: tighten up output, reorganize README.md
2017-01-04 13:44:49 -08:00
Anthony Romano
00e00f16bb
ctlv3: consider permission denied error to be healthy for endpoints
...
Relaxes the permission expectations for endpoint health by noting:
* permission denial on linearized reads is always through consensus
* endpoint health means consensus with the cluster through the endpoint
So, there's no need to require permission on a health check key in order
to know whether the endpoint is healthy.
Fixes #7057
2016-12-28 09:13:27 -08:00