mirror of https://github.com/knative/caching.git
upgrade to latest dependencies (#388)
Signed-off-by: Knative Automation <automation@knative.team>
This commit is contained in:
parent
cfd1b9372d
commit
487bae6a75
2
go.mod
2
go.mod
|
@ -18,5 +18,5 @@ require (
|
||||||
k8s.io/code-generator v0.18.12
|
k8s.io/code-generator v0.18.12
|
||||||
k8s.io/kube-openapi v0.0.0-20200410145947-bcb3869e6f29
|
k8s.io/kube-openapi v0.0.0-20200410145947-bcb3869e6f29
|
||||||
knative.dev/hack v0.0.0-20201112185459-01a34c573bd8
|
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
4
go.sum
|
@ -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=
|
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 h1:RNbZsAjhswBPtl4C5C5gEFX5/GfWIOZQxfYD9DhkHdY=
|
||||||
knative.dev/hack v0.0.0-20201112185459-01a34c573bd8/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI=
|
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-20201117221452-0fccc54273ed h1:4LNEFhvD2Ya4WgCD3SC1WGXz81bjEvQgbcpe5XACI3I=
|
||||||
knative.dev/pkg v0.0.0-20201117200952-14386bb65da0/go.mod h1:nxlh3CUvx6WBPr1WKD96AHxFZPD2UKRDo9RUp8ILTyQ=
|
knative.dev/pkg v0.0.0-20201117221452-0fccc54273ed/go.mod h1:nxlh3CUvx6WBPr1WKD96AHxFZPD2UKRDo9RUp8ILTyQ=
|
||||||
pgregory.net/rapid v0.3.3/go.mod h1:UYpPVyjFHzYBGHIxLFoupi8vwk6rXNzRY9OMvVxFIOU=
|
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/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
|
||||||
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
|
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
|
||||||
|
|
|
@ -17,10 +17,10 @@ limitations under the License.
|
||||||
package network
|
package network
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
|
||||||
|
|
||||||
"golang.org/x/net/http2"
|
"golang.org/x/net/http2"
|
||||||
"golang.org/x/net/http2/h2c"
|
"golang.org/x/net/http2/h2c"
|
||||||
|
@ -43,13 +43,9 @@ func NewServer(addr string, h http.Handler) *http.Server {
|
||||||
func NewH2CTransport() http.RoundTripper {
|
func NewH2CTransport() http.RoundTripper {
|
||||||
return &http2.Transport{
|
return &http2.Transport{
|
||||||
AllowHTTP: true,
|
AllowHTTP: true,
|
||||||
DialTLS: func(netw, addr string, cfg *tls.Config) (net.Conn, error) {
|
DialTLS: func(netw, addr string, _ *tls.Config) (net.Conn, error) {
|
||||||
d := &net.Dialer{
|
return DialWithBackOff(context.Background(),
|
||||||
Timeout: DefaultConnTimeout,
|
netw, addr)
|
||||||
KeepAlive: 5 * time.Second,
|
|
||||||
DualStack: true,
|
|
||||||
}
|
|
||||||
return d.Dial(netw, addr)
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,19 +24,6 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
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
|
// DefaultDrainTimeout is the time that Knative components on the data
|
||||||
// path will wait before shutting down server, but after starting to fail
|
// path will wait before shutting down server, but after starting to fail
|
||||||
// readiness probes to ensure network layer propagation and so that no requests
|
// readiness probes to ensure network layer propagation and so that no requests
|
||||||
|
|
|
@ -742,7 +742,7 @@ k8s.io/utils/trace
|
||||||
# knative.dev/hack v0.0.0-20201112185459-01a34c573bd8
|
# knative.dev/hack v0.0.0-20201112185459-01a34c573bd8
|
||||||
## explicit
|
## explicit
|
||||||
knative.dev/hack
|
knative.dev/hack
|
||||||
# knative.dev/pkg v0.0.0-20201117200952-14386bb65da0
|
# knative.dev/pkg v0.0.0-20201117221452-0fccc54273ed
|
||||||
## explicit
|
## explicit
|
||||||
knative.dev/pkg/apis
|
knative.dev/pkg/apis
|
||||||
knative.dev/pkg/apis/duck
|
knative.dev/pkg/apis/duck
|
||||||
|
|
Loading…
Reference in New Issue