upgrade to latest dependencies (#388)

Signed-off-by: Knative Automation <automation@knative.team>
This commit is contained in:
knative-automation 2020-11-17 17:20:52 -08:00 committed by GitHub
parent cfd1b9372d
commit 487bae6a75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 25 deletions

2
go.mod
View File

@ -18,5 +18,5 @@ require (
k8s.io/code-generator v0.18.12
k8s.io/kube-openapi v0.0.0-20200410145947-bcb3869e6f29
knative.dev/hack v0.0.0-20201112185459-01a34c573bd8
knative.dev/pkg v0.0.0-20201117200952-14386bb65da0
knative.dev/pkg v0.0.0-20201117221452-0fccc54273ed
)

4
go.sum
View File

@ -1133,8 +1133,8 @@ k8s.io/utils v0.0.0-20200603063816-c1c6865ac451 h1:v8ud2Up6QK1lNOKFgiIVrZdMg7Mpm
k8s.io/utils v0.0.0-20200603063816-c1c6865ac451/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
knative.dev/hack v0.0.0-20201112185459-01a34c573bd8 h1:RNbZsAjhswBPtl4C5C5gEFX5/GfWIOZQxfYD9DhkHdY=
knative.dev/hack v0.0.0-20201112185459-01a34c573bd8/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI=
knative.dev/pkg v0.0.0-20201117200952-14386bb65da0 h1:wnKsg8Sg93DayLDRTkJ4LJuIE1eoIOv0ZwW5b0c9LPE=
knative.dev/pkg v0.0.0-20201117200952-14386bb65da0/go.mod h1:nxlh3CUvx6WBPr1WKD96AHxFZPD2UKRDo9RUp8ILTyQ=
knative.dev/pkg v0.0.0-20201117221452-0fccc54273ed h1:4LNEFhvD2Ya4WgCD3SC1WGXz81bjEvQgbcpe5XACI3I=
knative.dev/pkg v0.0.0-20201117221452-0fccc54273ed/go.mod h1:nxlh3CUvx6WBPr1WKD96AHxFZPD2UKRDo9RUp8ILTyQ=
pgregory.net/rapid v0.3.3/go.mod h1:UYpPVyjFHzYBGHIxLFoupi8vwk6rXNzRY9OMvVxFIOU=
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=

View File

@ -17,10 +17,10 @@ limitations under the License.
package network
import (
"context"
"crypto/tls"
"net"
"net/http"
"time"
"golang.org/x/net/http2"
"golang.org/x/net/http2/h2c"
@ -43,13 +43,9 @@ func NewServer(addr string, h http.Handler) *http.Server {
func NewH2CTransport() http.RoundTripper {
return &http2.Transport{
AllowHTTP: true,
DialTLS: func(netw, addr string, cfg *tls.Config) (net.Conn, error) {
d := &net.Dialer{
Timeout: DefaultConnTimeout,
KeepAlive: 5 * time.Second,
DualStack: true,
}
return d.Dial(netw, addr)
DialTLS: func(netw, addr string, _ *tls.Config) (net.Conn, error) {
return DialWithBackOff(context.Background(),
netw, addr)
},
}
}

View File

@ -24,19 +24,6 @@ import (
)
const (
// DefaultConnTimeout specifies a short default connection timeout
// to avoid hitting the issue fixed in
// https://github.com/kubernetes/kubernetes/pull/72534 but only
// available after Kubernetes 1.14.
//
// Our connections are usually between pods in the same cluster
// like activator <-> queue-proxy, or even between containers
// within the same pod queue-proxy <-> user-container, so a
// smaller connect timeout would be justifiable.
//
// We should consider exposing this as a configuration.
DefaultConnTimeout = 200 * time.Millisecond
// DefaultDrainTimeout is the time that Knative components on the data
// path will wait before shutting down server, but after starting to fail
// readiness probes to ensure network layer propagation and so that no requests

2
vendor/modules.txt vendored
View File

@ -742,7 +742,7 @@ k8s.io/utils/trace
# knative.dev/hack v0.0.0-20201112185459-01a34c573bd8
## explicit
knative.dev/hack
# knative.dev/pkg v0.0.0-20201117200952-14386bb65da0
# knative.dev/pkg v0.0.0-20201117221452-0fccc54273ed
## explicit
knative.dev/pkg/apis
knative.dev/pkg/apis/duck