@@ -486,7 +486,7 @@ pub struct HttpRouteBackendFilter {
486486 skip_serializing_if = "Option::is_none" ,
487487 rename = "requestMirror"
488488 ) ]
489- pub request_mirror : Option < HttpRouteRulesBackendRefsFiltersRequestMirror > ,
489+ pub request_mirror : Option < RequestMirror > ,
490490 /// RequestRedirect defines a schema for a filter that responds to the
491491 /// request with an HTTP redirection.
492492 ///
@@ -789,7 +789,7 @@ pub struct HttpRouteRulesBackendRefsFiltersExternalAuth {
789789 /// implementation to supply the TLS details to be used to connect to that
790790 /// backend.
791791 #[ serde( rename = "backendRef" ) ]
792- pub backend_ref : HttpRouteRulesBackendRefsFiltersExternalAuthBackendRef ,
792+ pub backend_ref : BackendObjectReference ,
793793 /// ForwardBody controls if requests to the authorization server should include
794794 /// the body of the client request; and if so, how big that body is allowed
795795 /// to be.
@@ -840,58 +840,6 @@ pub struct HttpRouteRulesBackendRefsFiltersExternalAuth {
840840 /// HTTP Support - HTTPRouteExternalAuthHTTP
841841 pub protocol : HttpRouteRulesBackendRefsFiltersExternalAuthProtocol ,
842842}
843- /// RequestMirror defines a schema for a filter that mirrors requests.
844- /// Requests are sent to the specified destination, but responses from
845- /// that destination are ignored.
846- ///
847- /// This filter can be used multiple times within the same rule. Note that
848- /// not all implementations will be able to support mirroring to multiple
849- /// backends.
850- ///
851- /// Support: Extended
852- #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default , PartialEq ) ]
853- pub struct HttpRouteRulesBackendRefsFiltersRequestMirror {
854- /// BackendRef references a resource where mirrored requests are sent.
855- ///
856- /// Mirrored requests must be sent only to a single destination endpoint
857- /// within this BackendRef, irrespective of how many endpoints are present
858- /// within this BackendRef.
859- ///
860- /// If the referent cannot be found, this BackendRef is invalid and must be
861- /// dropped from the Gateway. The controller must ensure the "ResolvedRefs"
862- /// condition on the Route status is set to `status: False` and not configure
863- /// this backend in the underlying implementation.
864- ///
865- /// If there is a cross-namespace reference to an *existing* object
866- /// that is not allowed by a ReferenceGrant, the controller must ensure the
867- /// "ResolvedRefs" condition on the Route is set to `status: False`,
868- /// with the "RefNotPermitted" reason and not configure this backend in the
869- /// underlying implementation.
870- ///
871- /// In either error case, the Message of the `ResolvedRefs` Condition
872- /// should be used to provide more detail about the problem.
873- ///
874- /// Support: Extended for Kubernetes Service
875- ///
876- /// Support: Implementation-specific for any other resource
877- #[ serde( rename = "backendRef" ) ]
878- pub backend_ref : HttpRouteRulesBackendRefsFiltersExternalAuthBackendRef ,
879- /// Fraction represents the fraction of requests that should be
880- /// mirrored to BackendRef.
881- ///
882- /// Only one of Fraction or Percent may be specified. If neither field
883- /// is specified, 100% of requests will be mirrored.
884- #[ serde( default , skip_serializing_if = "Option::is_none" ) ]
885- pub fraction : Option < RequestMirrorFraction > ,
886- /// Percent represents the percentage of requests that should be
887- /// mirrored to BackendRef. Its minimum value is 0 (indicating 0% of
888- /// requests) and its maximum value is 100 (indicating 100% of requests).
889- ///
890- /// Only one of Fraction or Percent may be specified. If neither field
891- /// is specified, 100% of requests will be mirrored.
892- #[ serde( default , skip_serializing_if = "Option::is_none" ) ]
893- pub percent : Option < i32 > ,
894- }
895843/// HTTPRouteFilter defines processing steps that must be completed during the
896844/// request or response lifecycle. HTTPRouteFilters are meant as an extension
897845/// point to express processing that may be done in Gateway implementations. Some
@@ -958,7 +906,7 @@ pub struct HttpRouteFilter {
958906 skip_serializing_if = "Option::is_none" ,
959907 rename = "requestMirror"
960908 ) ]
961- pub request_mirror : Option < HttpRouteRulesFiltersRequestMirror > ,
909+ pub request_mirror : Option < RequestMirror > ,
962910 /// RequestRedirect defines a schema for a filter that responds to the
963911 /// request with an HTTP redirection.
964912 ///
@@ -1261,7 +1209,7 @@ pub struct HttpRouteRulesFiltersExternalAuth {
12611209 /// implementation to supply the TLS details to be used to connect to that
12621210 /// backend.
12631211 #[ serde( rename = "backendRef" ) ]
1264- pub backend_ref : HttpRouteRulesBackendRefsFiltersExternalAuthBackendRef ,
1212+ pub backend_ref : BackendObjectReference ,
12651213 /// ForwardBody controls if requests to the authorization server should include
12661214 /// the body of the client request; and if so, how big that body is allowed
12671215 /// to be.
@@ -1312,58 +1260,6 @@ pub struct HttpRouteRulesFiltersExternalAuth {
13121260 /// HTTP Support - HTTPRouteExternalAuthHTTP
13131261 pub protocol : HttpRouteRulesBackendRefsFiltersExternalAuthProtocol ,
13141262}
1315- /// RequestMirror defines a schema for a filter that mirrors requests.
1316- /// Requests are sent to the specified destination, but responses from
1317- /// that destination are ignored.
1318- ///
1319- /// This filter can be used multiple times within the same rule. Note that
1320- /// not all implementations will be able to support mirroring to multiple
1321- /// backends.
1322- ///
1323- /// Support: Extended
1324- #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default , PartialEq ) ]
1325- pub struct HttpRouteRulesFiltersRequestMirror {
1326- /// BackendRef references a resource where mirrored requests are sent.
1327- ///
1328- /// Mirrored requests must be sent only to a single destination endpoint
1329- /// within this BackendRef, irrespective of how many endpoints are present
1330- /// within this BackendRef.
1331- ///
1332- /// If the referent cannot be found, this BackendRef is invalid and must be
1333- /// dropped from the Gateway. The controller must ensure the "ResolvedRefs"
1334- /// condition on the Route status is set to `status: False` and not configure
1335- /// this backend in the underlying implementation.
1336- ///
1337- /// If there is a cross-namespace reference to an *existing* object
1338- /// that is not allowed by a ReferenceGrant, the controller must ensure the
1339- /// "ResolvedRefs" condition on the Route is set to `status: False`,
1340- /// with the "RefNotPermitted" reason and not configure this backend in the
1341- /// underlying implementation.
1342- ///
1343- /// In either error case, the Message of the `ResolvedRefs` Condition
1344- /// should be used to provide more detail about the problem.
1345- ///
1346- /// Support: Extended for Kubernetes Service
1347- ///
1348- /// Support: Implementation-specific for any other resource
1349- #[ serde( rename = "backendRef" ) ]
1350- pub backend_ref : HttpRouteRulesBackendRefsFiltersExternalAuthBackendRef ,
1351- /// Fraction represents the fraction of requests that should be
1352- /// mirrored to BackendRef.
1353- ///
1354- /// Only one of Fraction or Percent may be specified. If neither field
1355- /// is specified, 100% of requests will be mirrored.
1356- #[ serde( default , skip_serializing_if = "Option::is_none" ) ]
1357- pub fraction : Option < RequestMirrorFraction > ,
1358- /// Percent represents the percentage of requests that should be
1359- /// mirrored to BackendRef. Its minimum value is 0 (indicating 0% of
1360- /// requests) and its maximum value is 100 (indicating 100% of requests).
1361- ///
1362- /// Only one of Fraction or Percent may be specified. If neither field
1363- /// is specified, 100% of requests will be mirrored.
1364- #[ serde( default , skip_serializing_if = "Option::is_none" ) ]
1365- pub percent : Option < i32 > ,
1366- }
13671263/// HTTPRouteMatch defines the predicate used to match requests to a given
13681264/// action. Multiple match types are ANDed together, i.e. the match will
13691265/// evaluate to true only if all conditions are satisfied.
0 commit comments