Gyu-Ho Lee
3a6d4b7f12
e2e: test sort ASCEND when sort target is missing
2016-10-18 16:29:22 -07:00
Gyu-Ho Lee
fac20b228d
ctlv3: support del all keys by '--prefix'
2016-10-17 09:33:59 -07:00
Hitoshi Mitake
d585b43abe
etcdctl, e2e: add --check-key option to endpoint health
...
This commit adds a new option --check-key to endpoint health command
for health checking with a custom key. It is mainly for avoiding
permission problem.
2016-10-14 11:39:46 +09:00
Hitoshi Mitake
644ec0ddef
etcdctl, e2e: parse auth related options in endpoint health command
...
Partially fixes https://github.com/coreos/etcd/issues/6611
2016-10-09 20:34:09 +09:00
Anthony Romano
f2af08f5aa
etcdctl: remove superfluous session in lock command
2016-10-05 13:30:36 -07:00
sharat
dcfbcb7a68
etcdctlv3: minor updates to put and make-mirror command
2016-09-28 10:20:08 +05:30
sharat
af8728f328
etcdctlv3:corrected and organised etcdctl commands
2016-09-23 18:21:54 +05:30
Xiang Li
b1e4defc48
Merge pull request #6501 from sinsharat/feature_add_del_from-key
...
etcdctlv3: del command from-key feature added
2016-09-22 09:15:04 -05:00
Gyu-Ho Lee
804e215981
Merge pull request #6505 from sinsharat/compaction_options_update
...
etcdctlv3: updated compaction options
2016-09-22 06:52:43 -07:00
sharat
5fa233a564
etcdctlv3: updated compaction options
2016-09-22 19:06:05 +05:30
sharat
35ff70656b
etcdctlv3: del command from-key feature added
2016-09-22 16:55:36 +05:30
sharat
1601ee761a
etcdctlv3: updated member command options
2016-09-22 15:04:54 +05:30
Xiang Li
30b26f8f50
etcdctl: remove the use of remprefix
2016-09-22 08:43:31 +08:00
sharat
05175480b3
etcdctlv3: updated snapshot restore options
2016-09-21 16:17:32 +05:30
Sharat
9743ee8b83
etcdctlv3: updated readme for options and examples for get command
2016-09-21 04:51:13 +05:30
sharat
3e67702d4b
etcdctlv3: updated options for TIMETOLIVE
2016-09-20 16:40:58 +05:30
Xiang Li
86aeeca644
Merge pull request #6454 from sinsharat/windows_save_snapshot_fix
...
ctlv3: close snapshot file before rename (Windows)
2016-09-16 18:09:59 -05:00
sharat
fef6557f6c
ctlv3: close snapshot file before rename (Windows)
2016-09-16 21:55:04 +05:30
sharat
b571f4d627
etcdctl/ctlv3: feature added to modify/remove prefix in the destination cluster
2016-09-16 18:48:41 +05:30
Anthony Romano
e77baa3dcb
Merge pull request #6424 from heyitsanthony/v3api-createminmax
...
etcdserver: range queries with min/max create revision
2016-09-14 19:10:52 -07:00
Anthony Romano
82af0c4a7d
ctlv3: remove superfluous session creation
2016-09-14 17:03:33 -07:00
Hitoshi Mitake
4211c0b7af
etcdctl, clientv3: improve printing of role get for prefix permission
...
This commit improves printing of role get command for prefix
permission. If a range permission corresponds to a prefix permission,
it is explicitly printed for a user. Below is an example of the new
printing:
$ ETCDCTL_API=3 bin/etcdctl --user root:p role get r1
Role r1
KV Read:
[/dir/, /dir0) (prefix /dir/)
[k1, k5)
KV Write:
[/dir/, /dir0) (prefix /dir/)
[k1, k5)
2016-09-14 16:10:32 +09:00
Hitoshi Mitake
4e2b09a7ca
etcdctl: an option for granting permission with key prefix
...
This commit adds a new option --prefix to "role grant-permission"
command. If the option is passed, the command interprets the key as a
prefix of range permission.
Example of usage:
$ ETCDCTL_API=3 bin/etcdctl --user root:p role grant-permission --prefix r1 readwrite /dir/
Role r1 updated
$ ETCDCTL_API=3 bin/etcdctl --user root:p role get r1
Role r1
KV Read:
[/dir/, /dir0)
[k1, k5)
KV Write:
[/dir/, /dir0)
[k1, k5)
$ ETCDCTL_API=3 bin/etcdctl --user u1:p put /dir/key val
OK
2016-09-14 12:54:14 +09:00
Gyu-Ho Lee
04a4cea630
etcdctl/ctlv3: add 'lease timetolive' command
2016-09-09 08:21:58 +09:00
sharat
8b764aac71
ctlv3: fix line parsing for Windows
2016-09-09 01:58:33 +05:30
Xiang Li
28d80ad709
Merge pull request #6370 from xiang90/fix_restore
...
etcdctl: restore should create a snapshot
2016-09-08 14:25:07 -05:00
Xiang Li
7e182fa24a
etcdctl: restore should create a snapshot
...
Restore should create a snasphot. So the new db file
can be sent to newly joined member.
2016-09-07 11:21:53 +08:00
Jason E. Aten
cccbf302f2
etcdctl/ctlv3: don't crash when we should prompt for pw.
...
when 'etcdctl --user name get blah' is invoked to
prompt for password, don't panic.
addresses the segfault part of #6343
2016-09-03 10:32:16 -07:00
Anthony Romano
b1740f5fe4
etcdctl: fix quoted string handling in txn and watch
...
Fixes #6315
2016-09-01 19:39:23 -07:00
Gyu-Ho Lee
524a5a1afb
ctlv3: add 'print-value-only' flag to get command
2016-08-29 12:09:07 -07:00
Xiang Li
86dcfbf205
etcdctl: list output options
2016-08-23 11:32:00 -07:00
Xiang Li
d5d2370fc8
Merge pull request #6172 from xiang90/session
...
session: remove session manager and add ttl
2016-08-15 15:20:19 -07:00
Xiang Li
feaff17259
session: remove session manager and add ttl
2016-08-15 14:12:25 -07:00
Gyu-Ho Lee
6b671b88dc
etcdctl/ctlv3: fix spell errors
2016-08-13 20:54:27 -07:00
Xiang Li
55ca788efe
etcdctl: only takes 127.0.0.1:2379 as default endpoint
2016-07-11 13:28:02 -07:00
Xiang Li
7ec822107a
*: add put prevkv
2016-07-05 20:45:01 -07:00
Xiang Li
12bf1a3382
*: rename preserveKVs to prevKv
2016-07-05 20:45:01 -07:00
Xiang Li
c853704ac9
*: support get-old-kv in watch
2016-07-05 16:17:09 -07:00
Xiang Li
c8c5f41a01
Merge pull request #5836 from xiang90/better_d_prev
...
*: support return prev deleted kv
2016-07-01 14:43:33 -07:00
Xiang Li
40c4a7894d
*: support return prev deleted kv
2016-07-01 14:01:48 -07:00
Gyu-Ho Lee
9b47ca5972
ctlv3: make flags, commands formats consistent
...
1. Capitalize first letter
2. Remove period at the end
(followed the pattern in linux coreutil man page)
2016-06-29 15:52:06 -07:00
Anthony Romano
1c25aa6c48
clientv3, ctl3, clientv3/integration: add compact response to compact
2016-06-28 09:32:31 -07:00
Gyu-Ho Lee
76e2bf03b8
etcdctl: v3 compact with physical flag
2016-06-27 12:07:46 -07:00
Gyu-Ho Lee
fa74a0d3bb
etcdctl: change peerURLs flag to 'peer-urls'
2016-06-23 09:52:25 -07:00
Gyu-Ho Lee
5720fe812e
etcdctl: use CreateDirAll
2016-06-22 15:55:56 -07:00
Xiang Li
82991074bf
Merge pull request #5733 from mitake/user-detail
...
etcdctl: a flag for getting detailed information of a user
2016-06-22 09:26:00 -07:00
Hitoshi Mitake
0e7690780f
etcdctl: a flag for getting detailed information of a user
...
This commit adds a new flag --detail to etcdctl user get command. The
flag enables printing the detailed permission information of the user
like below example:
$ ETCDCTL_API=3 bin/etcdctl --user root:p user get u1
User: u1
Roles: r1 r2
$ ETCDCTL_API=3 bin/etcdctl --user root:p user get u1 --detail
User: u1
Role r1
KV Read:
[k1, k5)
KV Write:
[k1, k5)
Role r2
KV Read:
a
b
[k8, k9)
KV Write:
a
b
[k8, k9)
2016-06-22 13:29:48 +09:00
Gyu-Ho Lee
80aa5978ca
etcdctl/ctlv3: minor clean ups
...
- Fix typo
- Improve command ordering (elect should be below lock)
- Update migrate command description
2016-06-21 13:12:01 -07:00
Hitoshi Mitake
0173564122
etcdctl: slightly enhance output of role revoke-permission
2016-06-20 16:57:50 +09:00
Ajit Yagaty
ad5d55dd4c
v3api: Add a flag to RangeRequest to return only the keys.
...
Currently the user can't list only the keys in a prefix search. In
order to support such operations the filtering will be done on the
server side to reduce the encoding and network transfer costs.
2016-06-19 14:18:39 -07:00