Gyu-Ho Lee
deb514989c
etcdctl/ctlv3: disable grpc client logs when --debug is off
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-11-11 20:52:33 -08:00
Gyu-Ho Lee
75110dd839
*: fix naked returns
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-11-10 18:46:15 -08:00
zhesi.huang
0ce02abf59
etcdctl: fix snapshot status accidentally modified the db file
2017-11-09 01:07:48 +08:00
marco
aaf4a70cd0
etcdctl v3: e2e test for the --once option to the lease keep-alive command
...
Follow up #8775
2017-10-27 08:48:22 +01:00
marco
cb188d0b26
etcdctl v3: adds the --once option to the lease keep-alive command
...
Fixes : #8719
2017-10-27 00:27:11 +01:00
Jeffrey Gensler
7ffcca5946
etcdctl: close snapshot backend to close open file on member/snap/db
2017-10-20 15:25:21 -07: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
Gyu-Ho Lee
d44f7d5f67
etcdctl/ctlv3: enable 'require-leader' for 'watch' command
...
To help with network partition cases.
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-10-09 13:19:30 -07:00
yuleixiao
04940efcc2
etcdctl: add keep alive time/timeout in etcdctl
...
client can switch from fault node to normal when keep alive is timeout
Fixes #7941
2017-10-09 09:51:43 +08:00
Gyu-Ho Lee
0199bdc266
*: fix 'ineffassign' issues
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-10-03 10:14:33 -07:00
Gyu-Ho Lee
c63d6b6a25
ctlv3: print envs, configure grpc logger with debug flag
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-09-26 07:05:10 +09:00
Hitoshi Mitake
1ae6f1614d
etcdctl: handle empty key permission correctly
...
Current `etcdctl role grant-permission` doesn't handle an empty key
("") correctly. Because the range permissions are treated as
BytesAffineInterval internally, just specifying the empty key as a
beginning of range introduces an invalid permission which doesn't work
and betray users' intuition. This commit fix the way of handling empty
key as a prefix or from key in permission granting.
Fix https://github.com/coreos/etcd/issues/8494
2017-09-13 14:25:52 +09:00
Gyu-Ho Lee
3b3d392540
*: use grpclog.LoggerV2
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-09-08 15:26:16 -07:00
Gyu-Ho Lee
f65aee0759
*: replace 'golang.org/x/net/context' with 'context'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-09-07 13:39:42 -07:00
Anthony Romano
9a84c84ea6
Merge pull request #8479 from heyitsanthony/ctlv2-backup-v3
...
ctlv2: backup --with-v3
2017-09-05 13:46:29 -07:00
jiaxuanzhou
9a0f8c5917
etcdctl: add discovery-srv global flag for v3
2017-09-02 10:24:36 +08:00
Anthony Romano
9f7375c225
ctlv2: save v3 db with v2 data using --with-v3
...
Also strips out v3 data if not given --with-v3.
2017-08-31 22:57:41 -07:00
Anthony Romano
525fbba1bd
etcdctl3: update to use RequestV2 instead of Request
2017-08-31 11:47:40 -07:00
Anthony Romano
1dea4c688e
etcdctl: unset ETCDCTL_ARGS on cov builds
...
The stricter warnings on pkg/flags generates extra output that
break coverage tests. Unset the ETCDCTL_ARGS environment variable
so the warnings aren't printed.
2017-08-25 22:43:14 -07:00
Anthony Romano
6fd37dd9a3
etcdctl: document getting all keys with etcdctl3
...
People keep asking
2017-08-18 09:49:55 -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
ad0b3cfdab
ctlv2: report unhealthy in cluster-health if any node is unavailable
...
Fixes #8061 and #7032
2017-06-09 10:57:17 -07:00
Anthony Romano
887db5a3db
*: fix go tool vet -all -shadow errors
2017-06-03 21:32:36 -07:00
Anthony Romano
dac2c10ce9
etcdctl, e2e: use 0xe7cd as argument separator in cov-enabled etcdctl
...
Fixes #7980
2017-05-25 16:11:52 -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
2f1467cb27
etcdctl: sync README with etcdctl role command, add prefix example, fix typo
...
Fixes #7951
2017-05-19 13:53:46 -07: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
Gyu-Ho Lee
4203320d04
*: fix other broken links in markdown
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-05-03 16:57:44 -07:00
Gyu-Ho Lee
e4e057f8f7
Documentation/v2: fix broken links
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-05-03 15:37:53 -07:00
Anthony Romano
6dd8fb6f24
Revert "Merge pull request #7732 from heyitsanthony/lease-err-ka"
...
This reverts commit fbbc4a4979
, reversing
changes made to f254e38385
.
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
Gyu-Ho Lee
7fb1f68ff8
*: coreos/rkt -> rkt/rkt
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-04-11 08:48:48 -07: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
432c19de61
ctlv3: have "protobuf" in output help string instead of "proto"
...
Fixes #7538
2017-03-20 09:40:21 -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
c8a2c7f64f
*: eschew you from documentation
...
Removed line wrapping in affected files as well.
2017-03-06 11:40:46 -08:00
Xiang Li
8a57b90e7f
Merge pull request #7422 from tmjd/docs_fix_migrate_example
...
etcdctl: Fix migrate example in README.md
2017-03-04 18:17:01 -08:00
Erik Stidham
9ba658f59b
etcdctl: Fix migrate example in README.md
2017-03-04 19:42:27 -06:00
Anthony Romano
ad45958841
etcdctl: correctly batch revisions in make-mirror
...
Fixes #7410
2017-03-02 14:30:24 -08:00
fanmin shi
f76ca01aed
etcdctl: show warning if ETCDCTL_API is not set in v2 --help
...
FIXES #7385
2017-03-01 11:29:59 -08:00
fanmin shi
aca4ea2a29
etcdctl: modify etcdctl v2 and v3 for code coverage
2017-02-28 14:50:27 -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
Anthony Romano
780d2f2a59
etcdctl: tighten up output, reorganize README.md
...
Documentation was far too repetitive, making it a chore to read and
make changes. All commands are now organized by functionality and all
repetitive bits about return values and output are in a generalized
subsections.
etcdctl's output handling was missing a lot of commands. Similarly,
in many cases an output format could be given but fail to report
an error as expected.
2016-12-16 13:54:20 -08:00
Anthony Romano
e71ff361a4
etcdctl: warn when backend takes too long to open on migrate
2016-12-15 18:57:57 -08:00
Anthony Romano
5f3140987e
etcdctl: "fields" output formats
...
Writes out fields from responses in the format "FieldName" : FieldValue. If
FieldValue is a string, it is formatted with %q.
2016-12-12 13:21:20 -08:00
Anthony Romano
5559a026d7
etcdctl: remove GetUser check before mutable commands
...
etcdctl was checking if the user exists before applying mutable calls;
if etcdctl contacts a minority member, the member may not know the user
exists on the cluster yet, causing command failure when it should succeed.
If the user does not exist, it will be picked up once the command goes
through raft.
Fixes #6932
2016-12-05 12:12:06 -08:00
Xiang Li
1ef243e436
etcdctl: etcdctl v3 should print out its API version
2016-11-11 09:33:20 -08:00
Gyu-Ho Lee
9dd75a946f
clientv3, ctlv3: document range end requirement
2016-11-08 17:02:32 -08:00
Gyu-Ho Lee
31a6efbc13
etcdctl/ctlv3: clarify 'user add' argument (user:password)
2016-11-03 10:47:45 -07:00
Xiang Li
b28b38fb6d
Merge pull request #6793 from timothysc/no-ttl
...
Add a no-ttl flag to etcdctl migrate to discard keys on transform.
2016-11-03 09:00:53 -07:00
Xiang Li
c5ac02164d
Merge pull request #6794 from xiang90/fix_migration
...
ctlv3: fix migration
2016-11-03 08:43:30 -07:00
Timothy St. Clair
97e96feb1d
ctlv3: Add a no-ttl flag to etcdctl migrate to discard keys on transform.
2016-11-03 10:41:54 -05:00
Xiang Li
2ba42990ec
ctlv3: fix migration
2016-11-02 20:00:07 -07:00
Gyu-Ho Lee
9b470ef4c0
etcdctl/ctlv2: error handling with JSON
2016-11-01 20:59:13 -07:00
Gyu-Ho Lee
b64de4707d
Merge pull request #6724 from johnbazan/ctlv3_add_user_with_password_inline
...
etcdctl: allow to add a user within one command line
2016-10-31 14:31:09 -07:00
Jonathan Bazan
73b4a58ac0
etcdctl: allow to add a user within one command line
...
This makes the "user add usr:pwd" feature available for ctlv3
without asking for the password in a new prompt.
2016-10-31 18:14:19 -03:00
joshrosso
e489229153
etcdctl: add ttl unit to flag description
...
Add the ttl unit (seconds) to --ttl description for etcdctl's mk, mkdir, set,
setdir, update, and updatedir commands.
2016-10-25 17:12:15 -07:00
Hongchao Deng
b3f0eeabe4
etcdctl: fix migrate in outputing client.Node to json
...
Using printf will try to parse the string and replace special
characters. In migrate code, we want to just output the raw
json string of client.Node.
For example,
Printf("%\\") => %!\(MISSING)
Print("%\\") => %\
Thus, we should use print instead.
2016-10-20 10:03:45 -07:00
sharat
00837b0736
etcdctlv3: update txn interactive command output
2016-10-19 19:55:09 +05:30
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
Gyu-Ho Lee
66f9e81c9a
etcdctl: update README on environment variables
2016-10-14 11:58: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
sharat
75f812eaa3
etcdctlv2: windows compatibility issue fix for etcd v3.0.1
2016-10-07 22:15:30 +05:30
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
sharat
308038e96a
etcdctlv3 : added options and examples for del from-key
2016-09-22 22:54:20 +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
bcda9af15d
etcdctlv3: updated del command options
2016-09-22 00:16:53 +05:30
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
sharat
6c408eb779
etcdctlv3:updated readme.md for make-mirror modify/remove prefix in dest cluster
2016-09-17 16:13:01 +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
sharat
cd3a7fb833
etcdctl: readme.md display fix
2016-09-15 12:23:56 +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
Xiang Li
672472f85e
Merge pull request #6414 from mitake/prefix-perm
...
etcdctl: an option for granting permission with key prefix
2016-09-13 23:29:40 -05: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
sharat
6f4e3696d2
etcdctl\ctlv3: updated readme.md for timetolive example
2016-09-13 22:31:34 +05:30
sharat
d5edb62bd0
etcdctl:readme.md doc made uniform
2016-09-10 00:32:36 +05:30
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
Sharat
656167d760
etcdctl: Corrected command in Readme.md ( #6376 )
...
Corrected command in Readme.md
2016-09-07 21:09:24 +09:00
sharat
534cb0b749
etcdctlv3: Readme.md updated
...
1. Under PUT example the put command was mentioned in capital which will
give the below error:
Error: unknown command "PUT" for "etcdctl"
Hence corrected the same.
2. The lease id is mentioned with 0x to denote hex but since its an
example, copy pasting the command will give the below error:
Error: bad lease ID (strconv.ParseInt: parsing "0x1234abcd": invalid
syntax), expecting ID in Hex
Hence modified the same to a sample correct value so that a user new to
etcd does not get confused.
3. The command ./etcdctl range foo does not work and gives the below
error:
Error: unknown command "range" for "etcdctl"
Hence corrected the same
#6372
2016-09-07 12:35:20 +05:30
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
Anthony Romano
e218834b58
etcdctl: set ServerName for TLS when using --discovery-srv
2016-08-03 22:28:03 -07:00
jesse.millan
205f10aeb6
etcdctl: Add support for formating output of key related commands
...
All v2 key and dir related commands will now honor the global format option if
it was specified. Otherwise, the output will remain the same.
2016-07-27 14:17:19 -07:00
jesse.millan
f18d5433cc
etcdctl: Add support for formating output of ls command in json
...
The ls command will check for and honor json or extended output formats.
Fixes #5993
2016-07-20 18:05:23 -07:00
Anthony Romano
97ff1abb3e
etcdctl: remove 0.4 import command
2016-07-13 15:30:37 -07:00
Anthony Romano
439b96f090
etcdctl: remove 0.4 peer syncing
2016-07-13 15:26:25 -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