You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vendor/knative.dev/networking/pkg/apis/networking/ports.go
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,11 @@ const (
40
40
ServicePortNameHTTPS="https"
41
41
)
42
42
43
+
var (
44
+
// 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
45
+
AppProtocolH2C="kubernetes.io/h2c"
46
+
)
47
+
43
48
// ServicePortName returns the port for the app level protocol.
44
49
funcServicePortName(protoProtocolType) string {
45
50
ifproto==ProtocolH2C {
@@ -55,3 +60,11 @@ func ServicePort(proto ProtocolType) int {
55
60
}
56
61
returnServiceHTTPPort
57
62
}
63
+
64
+
// AppProtocol returns the value for app level protocol based on the ProtocolType
0 commit comments