Struct k8s_gateway_api::GatewayClassSpec
source · pub struct GatewayClassSpec {
pub controller_name: GatewayController,
pub paramters_ref: Option<ParametersReference>,
pub description: Option<String>,
}
Expand description
GatewayClass describes a class of Gateways available to the user for creating Gateway resources.
It is recommended that this resource be used as a template for Gateways. This means that a Gateway is based on the state of the GatewayClass at the time it was created and changes to the GatewayClass or associated parameters are not propagated down to existing Gateways. This recommendation is intended to limit the blast radius of changes to GatewayClass or associated parameters. If implementations choose to propagate GatewayClass changes to existing Gateways, that MUST be clearly documented by the implementation.
Whenever one or more Gateways are using a GatewayClass, implementations SHOULD
add the gateway-exists-finalizer.gateway.networking.k8s.io
finalizer on the
associated GatewayClass. This ensures that a GatewayClass associated with a
Gateway is not deleted while in use.
GatewayClass is a Cluster level resource.
Fields§
§controller_name: GatewayController
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
paramters_ref: Option<ParametersReference>
ParametersRef is a reference to a resource that contains the configuration 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.
Support: Implementation-specific
description: Option<String>
Description helps describe a GatewayClass with more details.
Trait Implementations§
source§impl Clone for GatewayClassSpec
impl Clone for GatewayClassSpec
source§fn clone(&self) -> GatewayClassSpec
fn clone(&self) -> GatewayClassSpec
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GatewayClassSpec
impl Debug for GatewayClassSpec
source§impl<'de> Deserialize<'de> for GatewayClassSpec
impl<'de> Deserialize<'de> for GatewayClassSpec
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl JsonSchema for GatewayClassSpec
impl JsonSchema for GatewayClassSpec
source§fn schema_name() -> String
fn schema_name() -> String
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read more