Anthony Romano
55e2355326
Merge pull request #7695 from heyitsanthony/upgrade-grpc-gateway
...
vendor: upgrade grpc-gateway to v1.2.0
2017-04-07 19:04:00 -07:00
Anthony Romano
2769cae6bd
vendor: upgrade grpc-gateway to v1.2.0
2017-04-07 16:36:14 -07:00
Anthony Romano
c0560be98a
Merge pull request #7692 from heyitsanthony/upgrade-grpc
...
vendor: upgrade grpc to 1.2.1
2017-04-07 16:04:50 -07:00
Anthony Romano
9ba435d902
vendor: upgrade grpc to 1.2.1
2017-04-07 14:32:00 -07:00
Anthony Romano
63bb560820
Merge pull request #7688 from heyitsanthony/short-mask
...
test: fix fmt pass, shorten warnings, clear SA1016
2017-04-07 12:33:57 -07:00
Anthony Romano
88d4e7ebeb
netutil: fix unused err staticcheck failure
...
Clears SA4006
2017-04-07 10:52:54 -07:00
Anthony Romano
7e05b33aa0
*: remove os.Kill from signal.Notify
...
Clears SA1016 in staticcheck
2017-04-07 10:52:54 -07:00
Anthony Romano
d31701bab5
test: fix fmt pass and shorten suppression warnings
...
If gosimple or staticcheck had no output, it no other passes would be
applied because they were using `continue`. Similarly, the suppression
check never worked at all since it wasn't the result data into egrep.
Fixes #7685
2017-04-06 21:33:03 -07:00
Gyu-Ho Lee
25ed908c18
Merge pull request #7684 from gyuho/a
...
clientv3/integration: fix minor typo in Fatalf
2017-04-06 19:15:51 -07:00
Gyu-Ho Lee
369d561350
clientv3/integration: fix minor typo in Fatalf
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-04-06 18:26:42 -07:00
fanmin shi
7c5991c2e6
Merge pull request #7676 from fanminshi/add_dns_srv
...
etcdmain: support SRV discovery for gRPC proxy
2017-04-06 12:32:40 -07:00
Anthony Romano
bea4c62965
Merge pull request #7677 from heyitsanthony/fix-waitsubstream
...
clientv3: register waitCancelSubstreams closingc goroutine with waitgroup
2017-04-06 11:10:06 -07:00
fanmin shi
2bc1dfd921
etcdmain: support SRV discovery for gRPC proxy
...
FIX #7562
2017-04-06 10:45:19 -07:00
Gyu-Ho Lee
e1cf766695
Merge pull request #7674 from gyuho/debug
...
ctlv3: add '--debug' flag (to enable grpclog)
2017-04-05 17:39:37 -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
Anthony Romano
aab2eda7df
clientv3: register waitCancelSubstreams closingc goroutine with waitgroup
...
Fixes #7598
2017-04-05 16:06:53 -07:00
Gyu-Ho Lee
408de4124b
Merge pull request #7675 from gyuho/tls-min-version
...
clientv3/yaml: use TLS 1.2 in min version
2017-04-05 12:58:16 -07:00
Gyu-Ho Lee
dee467dc24
clientv3/yaml: use TLS 1.2 in min version
...
To be consistent with 'pkg/transport'
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-04-05 11:50:35 -07:00
Anthony Romano
83577a5d08
Merge pull request #7670 from heyitsanthony/fix-lease-be-race
...
lease: acquire BatchTx lock in fakeDeleter
2017-04-05 11:08:15 -07:00
Anthony Romano
d42c1f5131
Merge pull request #7646 from andelf/fix-unix-socket-url
...
*: fix a bug in handling unix socket urls
2017-04-05 09:24:38 -07:00
Gyu-Ho Lee
43f795a485
Merge pull request #7659 from gyuho/aaa
...
pkg/transport: remove port in Certificate.IPAddresses
2017-04-05 04:29:44 -07:00
andelf
4f27981c46
*: fix a bug in handling unix socket urls
...
Now use url.Host + url.Path as unix socket path
Fixes #7644
2017-04-05 14:33:13 +08:00
Hitoshi Mitake
c7bdd7e2c5
Merge pull request #7669 from mitake/byte-affine
...
auth, adt: introduce a new type ByteAffineComparable
2017-04-05 15:19:08 +09:00
Hitoshi Mitake
c4a45c5713
auth, adt: introduce a new type BytesAffineComparable
...
It will be useful for avoiding a cost of casting from string to
[]byte. The permission checker is the first user of the type.
2017-04-05 13:17:24 +09:00
Anthony Romano
42d56d5ef7
lease: acquire BatchTx lock in fakeDeleter
...
Revoke expects the BatchTx lock to be held when holding the TxnDeleter
because it updates the lease bucket. The tests don't hold the lock so
it may race with the backend commit loop.
Fixes #7662
2017-04-04 20:52:23 -07:00
Gyu-Ho Lee
d51d381eca
Merge pull request #7656 from gyuho/more-adapter
...
*: add cluster API adapter
2017-04-04 20:10:24 -07:00
Hitoshi Mitake
63355062dc
Merge pull request #7649 from mitake/range-open-ended
...
etcdctl: add a new option --open-ended for unlimited range permission
2017-04-05 11:03:52 +09:00
Xiang Li
f7c99208b5
Merge pull request #7667 from ElijahCaine/relative-links-1
...
Docs: replace absolute links with relative ones.
2017-04-04 18:33:02 -07:00
Anthony Romano
c0fc389c98
Merge pull request #7661 from heyitsanthony/cov-fail-report
...
test: generate coverage report even if some tests fail
2017-04-04 16:46:46 -07:00
Elijah C. Voigt
31c1931b7b
Docs: replace absolute links with relative ones.
2017-04-04 15:21:42 -07:00
Gyu-Ho Lee
6978471712
Merge pull request #7664 from gyuho/safe-revision-access
...
auth: use atomic access to 'authStore.revision'
2017-04-04 13:56:20 -07:00
Gyu-Ho Lee
3edd36315d
auth: use atomic access to 'authStore.revision'
...
Fix https://github.com/coreos/etcd/issues/7660 .
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-04-04 13:16:02 -07:00
Anthony Romano
23e952ccfd
test: generate coverage report even if some tests fail
...
The coverage data is still useful even if some tests fail. Instead of
terminating the coverage pass on any test failure, collect and pass
the failed tests, generate the coverage report, then report the failed
packages and exit with an error.
2017-04-04 11:12:18 -07:00
Gyu-Ho Lee
1e3274dfa2
integration: use cluster adapter in tests
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-04-04 10:08:51 -07:00
Gyu-Ho Lee
8a7a548a6d
pkg/transport: remove port in Certificate.IPAddresses
...
etcd passes 'url.URL.Host' to 'SelfCert' which contains
client, peer port. 'net.ParseIP("127.0.0.1:2379")' returns
'nil', and the client on this self-cert will see errors
of '127.0.0.1 because it doesn't contain any IP SANs'
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-04-04 09:44:59 -07:00
Gyu-Ho Lee
d9069120bb
Merge pull request #7657 from gyuho/auth-cleanup
...
clientv3: remove unused fields from 'auth'
2017-04-04 09:42:17 -07:00
Xiang Li
972d8c55ab
Merge pull request #7653 from xiang90/pprof
...
*: add pprof flag to grpc proxy
2017-04-04 09:22:50 -07:00
Gyu-Ho Lee
9bc3c0bd05
clientv3: remove unused fields from 'auth'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-04-04 08:17:36 -07:00
Gyu-Ho Lee
7f2d6b3ef6
clientv3,v3client: add cluster embedded client
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-04-04 08:14:18 -07:00
Gyu-Ho Lee
7adf4d7c94
grpcproxy/adapter: add Cluster API support
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-04-04 08:13:30 -07:00
Hitoshi Mitake
a204b14503
e2e: add a test case for the --open-ended option
2017-04-04 17:28:59 +09: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
fd5984af56
*: add pprof flag to grpc proxy
2017-04-03 22:07:17 -07:00
Anthony Romano
d6efc0b22b
Merge pull request #7651 from heyitsanthony/ivt-contains-intersects
...
*: support checking that an interval tree's keys cover an entire interval
2017-04-03 20:20:56 -07:00
Anthony Romano
f67bdc2eed
*: support checking that an interval tree's keys cover an entire interval
2017-04-03 15:38:07 -07:00
Anthony Romano
63c6824905
Merge pull request #7650 from philips/add-dims-v3
...
Documentation: add dims v3 gateway API for python
2017-04-03 15:08:03 -07:00
Anthony Romano
7dbc4549d9
Merge pull request #7652 from heyitsanthony/fix-gofmt-clientv3
...
clientv3: fix go1.8 go fmt warning in test
2017-04-03 15:05:41 -07:00
Anthony Romano
a0149106b8
clientv3: fix go1.8 go fmt warning in test
2017-04-03 14:00:06 -07:00
Brandon Philips
8963cf2f8b
Documentation: add dims v3 gateway API for python
2017-04-03 12:55:24 -07:00
Xiang Li
e56e43064f
Merge pull request #7637 from lumjjb/patch-2
...
Documentation: add encryption wrapper to integrations
2017-04-03 12:34:08 -07:00