Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to v1.2.0 #62

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 18 additions & 20 deletions gateway-api/src/apis/experimental/gatewayclasses.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// WARNING: generated by kopium - manual changes will be overwritten
// kopium command: kopium --schema=derived --derive=JsonSchema --derive=Default --derive=PartialEq --docs -f -
// kopium version: 0.20.1
// kopium version: 0.21.1

#[allow(unused_imports)]
mod prelude {
Expand All @@ -26,13 +26,10 @@ pub struct GatewayClassSpec {
/// ControllerName is the name of the controller that is managing Gateways of
/// this class. The value of this field MUST be a domain prefixed path.
///
///
/// Example: "example.net/gateway-controller".
///
///
/// This field is not mutable and cannot be empty.
///
///
/// Support: Core
#[serde(rename = "controllerName")]
pub controller_name: String,
Expand All @@ -43,21 +40,19 @@ pub struct GatewayClassSpec {
/// parameters corresponding to the GatewayClass. This is optional if the
/// controller does not require any additional configuration.
///
///
/// ParametersRef can reference a standard Kubernetes resource, i.e. ConfigMap,
/// or an implementation-specific custom resource. The resource can be
/// cluster-scoped or namespace-scoped.
///
///
/// If the referent cannot be found, the GatewayClass's "InvalidParameters"
/// status condition will be true.
///
/// If the referent cannot be found, refers to an unsupported kind, or when
/// the data within that resource is malformed, the GatewayClass SHOULD be
/// rejected with the "Accepted" status condition set to "False" and an
/// "InvalidParameters" reason.
///
/// A Gateway for this GatewayClass may provide its own `parametersRef`. When both are specified,
/// the merging behavior is implementation specific.
/// It is generally recommended that GatewayClass provides defaults that can be overridden by a Gateway.
///
///
/// Support: Implementation-specific
#[serde(
default,
Expand All @@ -71,21 +66,19 @@ pub struct GatewayClassSpec {
/// parameters corresponding to the GatewayClass. This is optional if the
/// controller does not require any additional configuration.
///
///
/// ParametersRef can reference a standard Kubernetes resource, i.e. ConfigMap,
/// or an implementation-specific custom resource. The resource can be
/// cluster-scoped or namespace-scoped.
///
///
/// If the referent cannot be found, the GatewayClass's "InvalidParameters"
/// status condition will be true.
///
/// If the referent cannot be found, refers to an unsupported kind, or when
/// the data within that resource is malformed, the GatewayClass SHOULD be
/// rejected with the "Accepted" status condition set to "False" and an
/// "InvalidParameters" reason.
///
/// A Gateway for this GatewayClass may provide its own `parametersRef`. When both are specified,
/// the merging behavior is implementation specific.
/// It is generally recommended that GatewayClass provides defaults that can be overridden by a Gateway.
///
///
/// Support: Implementation-specific
#[derive(Serialize, Deserialize, Clone, Debug, JsonSchema, Default, PartialEq)]
pub struct GatewayClassParametersRef {
Expand All @@ -104,26 +97,31 @@ pub struct GatewayClassParametersRef {

/// Status defines the current state of GatewayClass.
///
///
/// Implementations MUST populate status on all GatewayClass resources which
/// specify their controller name.
#[derive(Serialize, Deserialize, Clone, Debug, JsonSchema, Default, PartialEq)]
pub struct GatewayClassStatus {
/// Conditions is the current status from the controller for
/// this GatewayClass.
///
///
/// Controllers should prefer to publish conditions using values
/// of GatewayClassConditionType for the type of each Condition.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub conditions: Option<Vec<Condition>>,
/// SupportedFeatures is the set of features the GatewayClass support.
/// It MUST be sorted in ascending alphabetical order.
/// It MUST be sorted in ascending alphabetical order by the Name key.
///
#[serde(
default,
skip_serializing_if = "Option::is_none",
rename = "supportedFeatures"
)]
pub supported_features: Option<Vec<String>>,
pub supported_features: Option<Vec<GatewayClassStatusSupportedFeatures>>,
}

#[derive(Serialize, Deserialize, Clone, Debug, JsonSchema, Default, PartialEq)]
pub struct GatewayClassStatusSupportedFeatures {
/// FeatureName is used to describe distinct features that are covered by
/// conformance tests.
pub name: String,
}
Loading
Loading