From a5b1f5ca024f9060ab7dd72474ad7814220f5120 Mon Sep 17 00:00:00 2001 From: Knative Automation Date: Thu, 11 Jan 2024 16:49:44 -0500 Subject: [PATCH] upgrade to latest dependencies (#1236) bumping knative.dev/pkg 21d8c37...bc230ae: > bc230ae Update community files (# 2932) bumping knative.dev/networking 07c412e...206ff82: > 206ff82 Update community files (# 910) > b48b31e add helper for determining app protocol (# 904) bumping knative.dev/hack 3ea694d...e89096d: > e89096d Update community files (# 358) Signed-off-by: Knative Automation --- go.mod | 6 +++--- go.sum | 12 ++++++------ .../networking/pkg/apis/networking/ports.go | 13 +++++++++++++ vendor/modules.txt | 6 +++--- 4 files changed, 25 insertions(+), 12 deletions(-) diff --git a/go.mod b/go.mod index 09f4fd2bc4..436b4a2747 100644 --- a/go.mod +++ b/go.mod @@ -12,9 +12,9 @@ require ( k8s.io/api v0.28.5 k8s.io/apimachinery v0.28.5 k8s.io/client-go v0.28.5 - knative.dev/hack v0.0.0-20240108153050-3ea694d6dad7 - knative.dev/networking v0.0.0-20240109202710-07c412e16861 - knative.dev/pkg v0.0.0-20240109155808-21d8c37af23f + knative.dev/hack v0.0.0-20240111013919-e89096d74d85 + knative.dev/networking v0.0.0-20240111015052-206ff82eb8e9 + knative.dev/pkg v0.0.0-20240111013350-bc230ae58d14 ) require ( diff --git a/go.sum b/go.sum index f25299ceb7..7a65285c63 100644 --- a/go.sum +++ b/go.sum @@ -689,12 +689,12 @@ k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 h1:LyMgNKD2P8Wn1iAwQU5Ohx k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9/go.mod h1:wZK2AVp1uHCp4VamDVgBP2COHZjqD1T68Rf0CM3YjSM= k8s.io/utils v0.0.0-20230406110748-d93618cff8a2 h1:qY1Ad8PODbnymg2pRbkyMT/ylpTrCM8P2RJ0yroCyIk= k8s.io/utils v0.0.0-20230406110748-d93618cff8a2/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= -knative.dev/hack v0.0.0-20240108153050-3ea694d6dad7 h1:mICurlRke2mlKP3LmyWYQYl6KZe80rYP5+ag9w2HQLA= -knative.dev/hack v0.0.0-20240108153050-3ea694d6dad7/go.mod h1:yk2OjGDsbEnQjfxdm0/HJKS2WqTLEFg/N6nUs6Rqx3Q= -knative.dev/networking v0.0.0-20240109202710-07c412e16861 h1:rmEXnF2baoXtlsxcE3hxuqUIoRKzyiY1SeZCGFOv8y8= -knative.dev/networking v0.0.0-20240109202710-07c412e16861/go.mod h1:8Cr9FIZbsa9KhhzglMchAd4dSKvp0G+fs0wjvzK1LaE= -knative.dev/pkg v0.0.0-20240109155808-21d8c37af23f h1:F7zv+n+OY+FD8kX6/4CzAFbT+n4QKeJ025jHeOwFBvM= -knative.dev/pkg v0.0.0-20240109155808-21d8c37af23f/go.mod h1:8/u65OwQ+l56FFE1j8BB/rMiy6B9dom4fTrvLFZ/Vqg= +knative.dev/hack v0.0.0-20240111013919-e89096d74d85 h1:ERgPObDcW9LfaEPAeFvbW3UJcF3C3ul6B2ErNMv13OE= +knative.dev/hack v0.0.0-20240111013919-e89096d74d85/go.mod h1:yk2OjGDsbEnQjfxdm0/HJKS2WqTLEFg/N6nUs6Rqx3Q= +knative.dev/networking v0.0.0-20240111015052-206ff82eb8e9 h1:RKX2z8dZNFpMuGROfk7kDyRQJ6/JvNc0ymIRp0sqpQA= +knative.dev/networking v0.0.0-20240111015052-206ff82eb8e9/go.mod h1:8Cr9FIZbsa9KhhzglMchAd4dSKvp0G+fs0wjvzK1LaE= +knative.dev/pkg v0.0.0-20240111013350-bc230ae58d14 h1:F3+36IHb7qFLg0r43QBfF+PRcMXHnHOpS0gIERZGpXA= +knative.dev/pkg v0.0.0-20240111013350-bc230ae58d14/go.mod h1:8/u65OwQ+l56FFE1j8BB/rMiy6B9dom4fTrvLFZ/Vqg= 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/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= diff --git a/vendor/knative.dev/networking/pkg/apis/networking/ports.go b/vendor/knative.dev/networking/pkg/apis/networking/ports.go index 1c5b5301b5..6bd1a65f29 100644 --- a/vendor/knative.dev/networking/pkg/apis/networking/ports.go +++ b/vendor/knative.dev/networking/pkg/apis/networking/ports.go @@ -40,6 +40,11 @@ const ( ServicePortNameHTTPS = "https" ) +var ( + // AppProtocolH2C is the name of the external port of the service for HTTP/2, from https://github.com/kubernetes/enhancements/tree/master/keps/sig-network/3726-standard-application-protocols#new-standard-protocols + AppProtocolH2C = "kubernetes.io/h2c" +) + // ServicePortName returns the port for the app level protocol. func ServicePortName(proto ProtocolType) string { if proto == ProtocolH2C { @@ -55,3 +60,11 @@ func ServicePort(proto ProtocolType) int { } return ServiceHTTPPort } + +// AppProtocol returns the value for app level protocol based on the ProtocolType +func AppProtocol(proto ProtocolType) *string { + if proto == ProtocolH2C { + return &AppProtocolH2C + } + return nil +} diff --git a/vendor/modules.txt b/vendor/modules.txt index 010d465be3..35e6512b1c 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -917,10 +917,10 @@ k8s.io/utils/net k8s.io/utils/pointer k8s.io/utils/strings/slices k8s.io/utils/trace -# knative.dev/hack v0.0.0-20240108153050-3ea694d6dad7 +# knative.dev/hack v0.0.0-20240111013919-e89096d74d85 ## explicit; go 1.18 knative.dev/hack -# knative.dev/networking v0.0.0-20240109202710-07c412e16861 +# knative.dev/networking v0.0.0-20240111015052-206ff82eb8e9 ## explicit; go 1.18 knative.dev/networking/config knative.dev/networking/pkg @@ -971,7 +971,7 @@ knative.dev/networking/test/test_images/runtime/handlers knative.dev/networking/test/test_images/timeout knative.dev/networking/test/test_images/wsserver knative.dev/networking/test/types -# knative.dev/pkg v0.0.0-20240109155808-21d8c37af23f +# knative.dev/pkg v0.0.0-20240111013350-bc230ae58d14 ## explicit; go 1.18 knative.dev/pkg/apis knative.dev/pkg/apis/duck