pub struct GatewayClassParametersRef {
pub group: String,
pub kind: String,
pub name: String,
pub namespace: Option<String>,
}
Expand description
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, 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
Fields§
§group: String
Group is the group of the referent.
kind: String
Kind is kind of the referent.
name: String
Name is the name of the referent.
namespace: Option<String>
Namespace is the namespace of the referent. This field is required when referring to a Namespace-scoped resource and MUST be unset when referring to a Cluster-scoped resource.
Trait Implementations§
Source§impl Clone for GatewayClassParametersRef
impl Clone for GatewayClassParametersRef
Source§fn clone(&self) -> GatewayClassParametersRef
fn clone(&self) -> GatewayClassParametersRef
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for GatewayClassParametersRef
impl Debug for GatewayClassParametersRef
Source§impl Default for GatewayClassParametersRef
impl Default for GatewayClassParametersRef
Source§fn default() -> GatewayClassParametersRef
fn default() -> GatewayClassParametersRef
Source§impl<'de> Deserialize<'de> for GatewayClassParametersRef
impl<'de> Deserialize<'de> for GatewayClassParametersRef
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 GatewayClassParametersRef
impl JsonSchema for GatewayClassParametersRef
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(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreimpl StructuralPartialEq for GatewayClassParametersRef
Auto Trait Implementations§
impl Freeze for GatewayClassParametersRef
impl RefUnwindSafe for GatewayClassParametersRef
impl Send for GatewayClassParametersRef
impl Sync for GatewayClassParametersRef
impl Unpin for GatewayClassParametersRef
impl UnwindSafe for GatewayClassParametersRef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more