diff --git a/pkg/features/features.go b/pkg/features/features.go index 14ff93eba3..c9e3c1c52d 100644 --- a/pkg/features/features.go +++ b/pkg/features/features.go @@ -144,6 +144,12 @@ const ( // This option indicates support for HTTPRoute parentRef port (extended conformance). SupportHTTPRouteParentRefPort SupportedFeature = "HTTPRouteParentRefPort" + + // This option indicates support for HTTPRoute with a backendref with an appProtocol 'kubernetes.io/h2c' (extended conformance) + SupportHTTPRouteBackendProtocolH2C SupportedFeature = "HTTPRouteBackendProtocolH2C" + + // This option indicates support for HTTPRoute with a backendref with an appProtoocol 'kubernetes.io/ws' (extended conformance) + SupportHTTPRouteBackendProtocolWebSocket SupportedFeature = "HTTPRouteBackendProtocolWebSocket" ) // HTTPRouteExtendedFeatures includes all extended features for HTTPRoute @@ -164,6 +170,8 @@ var HTTPRouteExtendedFeatures = sets.New( SupportHTTPRouteBackendTimeout, SupportHTTPRouteParentRefPort, SupportHTTPRouteBackendRequestHeaderModification, + SupportHTTPRouteBackendProtocolH2C, + SupportHTTPRouteBackendProtocolWebSocket, ) // ----------------------------------------------------------------------------- @@ -173,12 +181,6 @@ var HTTPRouteExtendedFeatures = sets.New( const ( // This option indicates support for Destination Port matching. SupportHTTPRouteDestinationPortMatching SupportedFeature = "HTTPRouteDestinationPortMatching" - - // This option indicates support for HTTPRoute with a backendref with an appProtocol 'kubernetes.io/h2c' - SupportHTTPRouteBackendProtocolH2C SupportedFeature = "HTTPRouteBackendProtocolH2C" - - // This option indicates support for HTTPRoute with a backendref with an appProtoocol 'kubernetes.io/ws' - SupportHTTPRouteBackendProtocolWebSocket SupportedFeature = "HTTPRouteBackendProtocolWebSocket" ) // HTTPRouteExperimentalFeatures includes all the supported experimental features, currently only @@ -186,8 +188,6 @@ const ( // Implementations have the flexibility to opt-in for either specific features or the entire set. var HTTPRouteExperimentalFeatures = sets.New( SupportHTTPRouteDestinationPortMatching, - SupportHTTPRouteBackendProtocolH2C, - SupportHTTPRouteBackendProtocolWebSocket, ) // -----------------------------------------------------------------------------