Skip to content

Commit

Permalink
Update to v1.2.0
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Linsay <[email protected]>
  • Loading branch information
blinsay committed Oct 16, 2024
1 parent 57380ca commit da60fbc
Show file tree
Hide file tree
Showing 14 changed files with 548 additions and 1,578 deletions.
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

0 comments on commit da60fbc

Please sign in to comment.