Skip to content

Commit

Permalink
upgrade to latest dependencies
Browse files Browse the repository at this point in the history
bumping knative.dev/networking 07c412e...b48b31e:
  > b48b31e add helper for determining app protocol (# 904)

Signed-off-by: Knative Automation <[email protected]>
  • Loading branch information
knative-automation committed Jan 11, 2024
1 parent 499dc1d commit 4545400
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ require (
k8s.io/utils v0.0.0-20230406110748-d93618cff8a2
knative.dev/caching v0.0.0-20240109084756-1609145e5a5e
knative.dev/hack v0.0.0-20240108153050-3ea694d6dad7
knative.dev/networking v0.0.0-20240109202710-07c412e16861
knative.dev/networking v0.0.0-20240110211317-b48b31e7b950
knative.dev/pkg v0.0.0-20240109155808-21d8c37af23f
sigs.k8s.io/yaml v1.4.0
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -943,8 +943,8 @@ knative.dev/caching v0.0.0-20240109084756-1609145e5a5e h1:ntpYIYh8inIKU4fCFjk6RB
knative.dev/caching v0.0.0-20240109084756-1609145e5a5e/go.mod h1:gSCdhjS8lRNh32dMwqxnquK1rKrko0A+w9k4bz8/V50=
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/networking v0.0.0-20240110211317-b48b31e7b950 h1:i+Nmq9LAtsEzIRmbllaOmm5+eXjGqXznaZ729C8k4/w=
knative.dev/networking v0.0.0-20240110211317-b48b31e7b950/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=
pgregory.net/rapid v1.1.0 h1:CMa0sjHSru3puNx+J0MIAuiiEV4N0qj8/cMWGBBCsjw=
Expand Down
13 changes: 13 additions & 0 deletions vendor/knative.dev/networking/pkg/apis/networking/ports.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
}
2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,7 @@ knative.dev/caching/pkg/client/listers/caching/v1alpha1
# knative.dev/hack v0.0.0-20240108153050-3ea694d6dad7
## explicit; go 1.18
knative.dev/hack
# knative.dev/networking v0.0.0-20240109202710-07c412e16861
# knative.dev/networking v0.0.0-20240110211317-b48b31e7b950
## explicit; go 1.18
knative.dev/networking/config
knative.dev/networking/pkg
Expand Down

0 comments on commit 4545400

Please sign in to comment.