mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #10443 from Quasilyte/quasilyte/fix_args_order
etcdctl: fix strings.HasPrefix args order
This commit is contained in:
commit
faa7a49972
@ -8,6 +8,13 @@ The [minimum recommended etcd versions to run in **production**](https://groups.
|
|||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
|
## [v3.1.21](https://github.com/etcd-io/etcd/releases/tag/v3.1.21) (2019-TBD)
|
||||||
|
|
||||||
|
### etcdctl
|
||||||
|
|
||||||
|
- [Strip out insecure endpoints from DNS SRV records when using discovery](https://github.com/etcd-io/etcd/pull/10443) with etcdctl v2
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
## [v3.1.20](https://github.com/etcd-io/etcd/releases/tag/v3.1.20) (2018-10-10)
|
## [v3.1.20](https://github.com/etcd-io/etcd/releases/tag/v3.1.20) (2018-10-10)
|
||||||
|
|
||||||
|
@ -11,6 +11,9 @@ The [minimum recommended etcd versions to run in **production**](https://groups.
|
|||||||
|
|
||||||
## [v3.2.27](https://github.com/etcd-io/etcd/releases/tag/v3.2.27) (2019-TBD)
|
## [v3.2.27](https://github.com/etcd-io/etcd/releases/tag/v3.2.27) (2019-TBD)
|
||||||
|
|
||||||
|
### etcdctl
|
||||||
|
|
||||||
|
- [Strip out insecure endpoints from DNS SRV records when using discovery](https://github.com/etcd-io/etcd/pull/10443) with etcdctl v2
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
|
@ -429,6 +429,7 @@ Note: **v3.5 will deprecate `etcd --log-package-levels` flag for `capnslog`**; `
|
|||||||
save`.
|
save`.
|
||||||
- User can specify timeout of `etcdctl snapshot save` command using flag
|
- User can specify timeout of `etcdctl snapshot save` command using flag
|
||||||
`--command-timeout`.
|
`--command-timeout`.
|
||||||
|
- Fix etcdctl to [strip out insecure endpoints from DNS SRV records when using discovery](https://github.com/etcd-io/etcd/pull/10443)
|
||||||
|
|
||||||
### gRPC proxy
|
### gRPC proxy
|
||||||
|
|
||||||
|
@ -104,7 +104,7 @@ func getDomainDiscoveryFlagValue(c *cli.Context) ([]string, error) {
|
|||||||
// strip insecure connections
|
// strip insecure connections
|
||||||
ret := []string{}
|
ret := []string{}
|
||||||
for _, ep := range eps {
|
for _, ep := range eps {
|
||||||
if strings.HasPrefix("http://", ep) {
|
if strings.HasPrefix(ep, "http://") {
|
||||||
fmt.Fprintf(os.Stderr, "ignoring discovered insecure endpoint %q\n", ep)
|
fmt.Fprintf(os.Stderr, "ignoring discovered insecure endpoint %q\n", ep)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
@ -444,7 +444,7 @@ func endpointsFromFlagValue(cmd *cobra.Command) ([]string, error) {
|
|||||||
// strip insecure connections
|
// strip insecure connections
|
||||||
ret := []string{}
|
ret := []string{}
|
||||||
for _, ep := range eps {
|
for _, ep := range eps {
|
||||||
if strings.HasPrefix("http://", ep) {
|
if strings.HasPrefix(ep, "http://") {
|
||||||
fmt.Fprintf(os.Stderr, "ignoring discovered insecure endpoint %q\n", ep)
|
fmt.Fprintf(os.Stderr, "ignoring discovered insecure endpoint %q\n", ep)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user