Update ingress godeps
This commit is contained in:
parent
d43021b3f1
commit
28db8fb16d
1068 changed files with 461467 additions and 117300 deletions
6
vendor/k8s.io/kubernetes/pkg/util/net/http.go
generated
vendored
6
vendor/k8s.io/kubernetes/pkg/util/net/http.go
generated
vendored
|
|
@ -77,10 +77,8 @@ func SetOldTransportDefaults(t *http.Transport) *http.Transport {
|
|||
// for the Proxy, Dial, and TLSHandshakeTimeout fields if unset
|
||||
func SetTransportDefaults(t *http.Transport) *http.Transport {
|
||||
t = SetOldTransportDefaults(t)
|
||||
// Allow clients to disable http2 if needed.
|
||||
if s := os.Getenv("DISABLE_HTTP2"); len(s) > 0 {
|
||||
glog.Infof("HTTP2 has been explicitly disabled")
|
||||
} else {
|
||||
// Allow HTTP2 clients but default off for now
|
||||
if s := os.Getenv("ENABLE_HTTP2"); len(s) > 0 {
|
||||
if err := http2.ConfigureTransport(t); err != nil {
|
||||
glog.Warningf("Transport failed http2 configuration: %v", err)
|
||||
}
|
||||
|
|
|
|||
7
vendor/k8s.io/kubernetes/pkg/util/net/port_range.go
generated
vendored
7
vendor/k8s.io/kubernetes/pkg/util/net/port_range.go
generated
vendored
|
|
@ -71,12 +71,17 @@ func (pr *PortRange) Set(value string) error {
|
|||
high, err = strconv.Atoi(value[hyphenIndex+1:])
|
||||
}
|
||||
if err != nil {
|
||||
return fmt.Errorf("unable to parse port range: %s", value)
|
||||
return fmt.Errorf("unable to parse port range: %s: %v", value, err)
|
||||
}
|
||||
|
||||
if low > 65535 || high > 65535 {
|
||||
return fmt.Errorf("the port range cannot be greater than 65535: %s", value)
|
||||
}
|
||||
|
||||
if high < low {
|
||||
return fmt.Errorf("end port cannot be less than start port: %s", value)
|
||||
}
|
||||
|
||||
pr.Base = low
|
||||
pr.Size = 1 + high - low
|
||||
return nil
|
||||
|
|
|
|||
17
vendor/k8s.io/kubernetes/pkg/util/net/sets/README.md
generated
vendored
17
vendor/k8s.io/kubernetes/pkg/util/net/sets/README.md
generated
vendored
|
|
@ -1,17 +0,0 @@
|
|||
This package contains hand-coded set implementations that should be similar to
|
||||
the autogenerated ones in `pkg/util/sets`.
|
||||
|
||||
We can't simply use net.IPNet as a map-key in Go (because it contains a
|
||||
`[]byte`).
|
||||
|
||||
We could use the same workaround we use here (a string representation as the
|
||||
key) to autogenerate sets. If we do that, or decide on an alternate approach,
|
||||
we should replace the implementations in this package with the autogenerated
|
||||
versions.
|
||||
|
||||
It is expected that callers will alias this import as `netsets`
|
||||
i.e. `import netsets "k8s.io/kubernetes/pkg/util/net/sets"`
|
||||
|
||||
|
||||
|
||||
[]()
|
||||
28
vendor/k8s.io/kubernetes/pkg/util/net/sets/doc.go
generated
vendored
Normal file
28
vendor/k8s.io/kubernetes/pkg/util/net/sets/doc.go
generated
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
Copyright 2016 The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// This package contains hand-coded set implementations that should be similar
|
||||
// to the autogenerated ones in pkg/util/sets.
|
||||
// We can't simply use net.IPNet as a map-key in Go (because it contains a
|
||||
// []byte).
|
||||
// We could use the same workaround we use here (a string representation as the
|
||||
// key) to autogenerate sets. If we do that, or decide on an alternate
|
||||
// approach, we should replace the implementations in this package with the
|
||||
// autogenerated versions.
|
||||
// It is expected that callers will alias this import as "netsets" i.e. import
|
||||
// netsets "k8s.io/kubernetes/pkg/util/net/sets"
|
||||
|
||||
package sets
|
||||
Loading…
Add table
Add a link
Reference in a new issue