Skip to content

Commit e8ea77c

Browse files
committed
chore: run generators
Signed-off-by: Shane Utt <[email protected]>
1 parent d9d53be commit e8ea77c

File tree

12 files changed

+116
-120
lines changed

12 files changed

+116
-120
lines changed

gateway-api/src/apis/experimental/common.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,18 @@ pub enum HTTPFilterType {
4040
ExternalAuth,
4141
}
4242
#[derive(Serialize, Deserialize, Clone, Debug, JsonSchema, PartialEq)]
43-
pub enum HTTPRouteRulesBackendRefsFiltersExternalAuthProtocol {
43+
pub enum HeaderMatchType {
44+
Exact,
45+
RegularExpression,
46+
}
47+
#[derive(Serialize, Deserialize, Clone, Debug, JsonSchema, PartialEq)]
48+
pub enum HttpRouteRulesBackendRefsFiltersExternalAuthProtocol {
4449
#[serde(rename = "HTTP")]
4550
Http,
4651
#[serde(rename = "GRPC")]
4752
Grpc,
4853
}
4954
#[derive(Serialize, Deserialize, Clone, Debug, JsonSchema, PartialEq)]
50-
pub enum HeaderMatchType {
51-
Exact,
52-
RegularExpression,
53-
}
54-
#[derive(Serialize, Deserialize, Clone, Debug, JsonSchema, PartialEq)]
5555
pub enum PersistenceCookieConfigLifetime {
5656
Permanent,
5757
Session,
@@ -123,7 +123,7 @@ pub struct HTTPHeader {
123123
pub value: String,
124124
}
125125
#[derive(Serialize, Deserialize, Clone, Debug, JsonSchema, Default, PartialEq)]
126-
pub struct HTTPRouteRulesBackendRefsFiltersExternalAuthBackendRef {
126+
pub struct HttpRouteRulesBackendRefsFiltersExternalAuthBackendRef {
127127
#[serde(default, skip_serializing_if = "Option::is_none")]
128128
pub group: Option<String>,
129129
#[serde(default, skip_serializing_if = "Option::is_none")]
@@ -135,12 +135,12 @@ pub struct HTTPRouteRulesBackendRefsFiltersExternalAuthBackendRef {
135135
pub port: Option<i32>,
136136
}
137137
#[derive(Serialize, Deserialize, Clone, Debug, JsonSchema, Default, PartialEq)]
138-
pub struct HTTPRouteRulesBackendRefsFiltersExternalAuthForwardBody {
138+
pub struct HttpRouteRulesBackendRefsFiltersExternalAuthForwardBody {
139139
#[serde(default, skip_serializing_if = "Option::is_none", rename = "maxSize")]
140140
pub max_size: Option<i64>,
141141
}
142142
#[derive(Serialize, Deserialize, Clone, Debug, JsonSchema, Default, PartialEq)]
143-
pub struct HTTPRouteRulesBackendRefsFiltersExternalAuthGrpc {
143+
pub struct HttpRouteRulesBackendRefsFiltersExternalAuthGrpc {
144144
#[serde(
145145
default,
146146
skip_serializing_if = "Option::is_none",
@@ -149,7 +149,7 @@ pub struct HTTPRouteRulesBackendRefsFiltersExternalAuthGrpc {
149149
pub allowed_headers: Option<Vec<String>>,
150150
}
151151
#[derive(Serialize, Deserialize, Clone, Debug, JsonSchema, Default, PartialEq)]
152-
pub struct HTTPRouteRulesBackendRefsFiltersExternalAuthHttp {
152+
pub struct HttpRouteRulesBackendRefsFiltersExternalAuthHttp {
153153
#[serde(
154154
default,
155155
skip_serializing_if = "Option::is_none",
@@ -278,7 +278,7 @@ pub struct RequestRedirect {
278278
pub status_code: Option<i64>,
279279
}
280280
#[derive(Serialize, Deserialize, Clone, Debug, JsonSchema, Default, PartialEq)]
281-
pub struct HTTPRouteUrlRewrite {
281+
pub struct HttpRouteUrlRewrite {
282282
#[serde(default, skip_serializing_if = "Option::is_none")]
283283
pub hostname: Option<String>,
284284
#[serde(default, skip_serializing_if = "Option::is_none")]

gateway-api/src/apis/experimental/constants.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ impl std::fmt::Display for ListenerConditionReason {
9191
write!(f, "{:?}", self)
9292
}
9393
}
94-
9594
#[derive(Debug, PartialEq, Eq)]
9695
pub enum RouteConditionType {
9796
Accepted,
@@ -102,7 +101,6 @@ impl std::fmt::Display for RouteConditionType {
102101
write!(f, "{:?}", self)
103102
}
104103
}
105-
106104
#[derive(Debug, PartialEq, Eq)]
107105
pub enum RouteConditionReason {
108106
Accepted,

gateway-api/src/apis/experimental/enum_defaults.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ impl Default for HTTPFilterType {
1313
}
1414
}
1515

16-
impl Default for RequestOperationType {
16+
impl Default for HttpRouteRulesBackendRefsFiltersExternalAuthProtocol {
1717
fn default() -> Self {
18-
RequestOperationType::ReplaceFullPath
18+
HttpRouteRulesBackendRefsFiltersExternalAuthProtocol::Http
1919
}
2020
}
2121

22-
impl Default for HTTPRouteRulesBackendRefsFiltersExternalAuthProtocol {
22+
impl Default for RequestOperationType {
2323
fn default() -> Self {
24-
HTTPRouteRulesBackendRefsFiltersExternalAuthProtocol::Http
24+
RequestOperationType::ReplaceFullPath
2525
}
2626
}

gateway-api/src/apis/experimental/grpcroutes.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use self::prelude::*;
2121
#[kube(status = "RouteStatus")]
2222
#[kube(derive = "Default")]
2323
#[kube(derive = "PartialEq")]
24-
pub struct GRPCRouteSpec {
24+
pub struct GrpcRouteSpec {
2525
/// Hostnames defines a set of hostnames to match against the GRPC
2626
/// Host header to select a GRPCRoute to process the request. This matches
2727
/// the RFC 1123 definition of a hostname with 2 notable exceptions:
@@ -143,7 +143,7 @@ pub struct GRPCRouteSpec {
143143
pub parent_refs: Option<Vec<ParentReference>>,
144144
/// Rules are a list of GRPC matchers, filters and actions.
145145
#[serde(default, skip_serializing_if = "Option::is_none")]
146-
pub rules: Option<Vec<GRPCRouteRule>>,
146+
pub rules: Option<Vec<GrpcRouteRule>>,
147147
/// UseDefaultGateways indicates the default Gateway scope to use for this
148148
/// Route. If unset (the default) or set to None, the Route will not be
149149
/// attached to any default Gateway; if set, it will be attached to any
@@ -167,7 +167,7 @@ pub struct GRPCRouteSpec {
167167
/// conditions (matches), processing it (filters), and forwarding the request to
168168
/// an API object (backendRefs).
169169
#[derive(Serialize, Deserialize, Clone, Debug, JsonSchema, Default, PartialEq)]
170-
pub struct GRPCRouteRule {
170+
pub struct GrpcRouteRule {
171171
/// BackendRefs defines the backend(s) where matching requests should be
172172
/// sent.
173173
///
@@ -227,7 +227,7 @@ pub struct GRPCRouteRule {
227227
///
228228
/// Support: Core
229229
#[serde(default, skip_serializing_if = "Option::is_none")]
230-
pub filters: Option<Vec<GRPCRouteRulesFilters>>,
230+
pub filters: Option<Vec<GrpcRouteRulesFilters>>,
231231
/// Matches define conditions used for matching the rule against incoming
232232
/// gRPC requests. Each match is independent, i.e. this rule will be matched
233233
/// if **any** one of the matches is satisfied.
@@ -278,7 +278,7 @@ pub struct GRPCRouteRule {
278278
/// matching precedence MUST be granted to the first matching rule meeting
279279
/// the above criteria.
280280
#[serde(default, skip_serializing_if = "Option::is_none")]
281-
pub matches: Option<Vec<GRPCRouteMatch>>,
281+
pub matches: Option<Vec<GrpcRouteMatch>>,
282282
/// Name is the name of the route rule. This name MUST be unique within a Route if it is set.
283283
///
284284
/// Support: Extended
@@ -324,7 +324,7 @@ pub struct GRPCBackendReference {
324324
/// Support: Implementation-specific (For broader support of filters, use the
325325
/// Filters field in GRPCRouteRule.)
326326
#[serde(default, skip_serializing_if = "Option::is_none")]
327-
pub filters: Option<Vec<GRPCRouteRulesBackendRefsFilters>>,
327+
pub filters: Option<Vec<GrpcRouteRulesBackendRefsFilters>>,
328328
/// Group is the group of the referent. For example, "gateway.networking.k8s.io".
329329
/// When unspecified or empty string, core API group is inferred.
330330
#[serde(default, skip_serializing_if = "Option::is_none")]
@@ -388,7 +388,7 @@ pub struct GRPCBackendReference {
388388
/// authentication strategies, rate-limiting, and traffic shaping. API
389389
/// guarantee/conformance is defined based on the type of the filter.
390390
#[derive(Serialize, Deserialize, Clone, Debug, JsonSchema, Default, PartialEq)]
391-
pub struct GRPCRouteRulesBackendRefsFilters {
391+
pub struct GrpcRouteRulesBackendRefsFilters {
392392
/// ExtensionRef is an optional, implementation-specific extension to the
393393
/// "filter" behavior. For example, resource "myroutefilter" in group
394394
/// "networking.example.net"). ExtensionRef MUST NOT be used for core and
@@ -427,7 +427,7 @@ pub struct GRPCRouteRulesBackendRefsFilters {
427427
skip_serializing_if = "Option::is_none",
428428
rename = "requestMirror"
429429
)]
430-
pub request_mirror: Option<GRPCRouteRulesBackendRefsFiltersRequestMirror>,
430+
pub request_mirror: Option<GrpcRouteRulesBackendRefsFiltersRequestMirror>,
431431
/// ResponseHeaderModifier defines a schema for a filter that modifies response
432432
/// headers.
433433
///
@@ -475,7 +475,7 @@ pub struct GRPCRouteRulesBackendRefsFilters {
475475
///
476476
/// Support: Extended
477477
#[derive(Serialize, Deserialize, Clone, Debug, JsonSchema, Default, PartialEq)]
478-
pub struct GRPCRouteRulesBackendRefsFiltersRequestMirror {
478+
pub struct GrpcRouteRulesBackendRefsFiltersRequestMirror {
479479
/// BackendRef references a resource where mirrored requests are sent.
480480
///
481481
/// Mirrored requests must be sent only to a single destination endpoint
@@ -500,7 +500,7 @@ pub struct GRPCRouteRulesBackendRefsFiltersRequestMirror {
500500
///
501501
/// Support: Implementation-specific for any other resource
502502
#[serde(rename = "backendRef")]
503-
pub backend_ref: HTTPRouteRulesBackendRefsFiltersExternalAuthBackendRef,
503+
pub backend_ref: HttpRouteRulesBackendRefsFiltersExternalAuthBackendRef,
504504
/// Fraction represents the fraction of requests that should be
505505
/// mirrored to BackendRef.
506506
///
@@ -524,7 +524,7 @@ pub struct GRPCRouteRulesBackendRefsFiltersRequestMirror {
524524
/// authentication strategies, rate-limiting, and traffic shaping. API
525525
/// guarantee/conformance is defined based on the type of the filter.
526526
#[derive(Serialize, Deserialize, Clone, Debug, JsonSchema, Default, PartialEq)]
527-
pub struct GRPCRouteRulesFilters {
527+
pub struct GrpcRouteRulesFilters {
528528
/// ExtensionRef is an optional, implementation-specific extension to the
529529
/// "filter" behavior. For example, resource "myroutefilter" in group
530530
/// "networking.example.net"). ExtensionRef MUST NOT be used for core and
@@ -563,7 +563,7 @@ pub struct GRPCRouteRulesFilters {
563563
skip_serializing_if = "Option::is_none",
564564
rename = "requestMirror"
565565
)]
566-
pub request_mirror: Option<GRPCRouteRulesFiltersRequestMirror>,
566+
pub request_mirror: Option<GrpcRouteRulesFiltersRequestMirror>,
567567
/// ResponseHeaderModifier defines a schema for a filter that modifies response
568568
/// headers.
569569
///
@@ -611,7 +611,7 @@ pub struct GRPCRouteRulesFilters {
611611
///
612612
/// Support: Extended
613613
#[derive(Serialize, Deserialize, Clone, Debug, JsonSchema, Default, PartialEq)]
614-
pub struct GRPCRouteRulesFiltersRequestMirror {
614+
pub struct GrpcRouteRulesFiltersRequestMirror {
615615
/// BackendRef references a resource where mirrored requests are sent.
616616
///
617617
/// Mirrored requests must be sent only to a single destination endpoint
@@ -636,7 +636,7 @@ pub struct GRPCRouteRulesFiltersRequestMirror {
636636
///
637637
/// Support: Implementation-specific for any other resource
638638
#[serde(rename = "backendRef")]
639-
pub backend_ref: HTTPRouteRulesBackendRefsFiltersExternalAuthBackendRef,
639+
pub backend_ref: HttpRouteRulesBackendRefsFiltersExternalAuthBackendRef,
640640
/// Fraction represents the fraction of requests that should be
641641
/// mirrored to BackendRef.
642642
///
@@ -671,7 +671,7 @@ pub struct GRPCRouteRulesFiltersRequestMirror {
671671
///
672672
/// ```
673673
#[derive(Serialize, Deserialize, Clone, Debug, JsonSchema, Default, PartialEq)]
674-
pub struct GRPCRouteMatch {
674+
pub struct GrpcRouteMatch {
675675
/// Headers specifies gRPC request header matchers. Multiple match values are
676676
/// ANDed together, meaning, a request MUST match all the specified headers
677677
/// to select the route.

0 commit comments

Comments
 (0)