Struct k8s_gateway_api::ListenerStatus
source · pub struct ListenerStatus {
pub name: SectionName,
pub supported_kinds: Vec<RouteGroupKind>,
pub attached_routes: u16,
pub conditions: Vec<Condition>,
}
Expand description
ListenerStatus is the status associated with a Listener.
Fields§
§name: SectionName
Name is the name of the Listener that this status corresponds to.
supported_kinds: Vec<RouteGroupKind>
SupportedKinds is the list indicating the Kinds supported by this listener. This MUST represent the kinds an implementation supports for that Listener configuration.
If kinds are specified in Spec that are not supported, they MUST NOT appear in this list and an implementation MUST set the “ResolvedRefs” condition to “False” with the “InvalidRouteKinds” reason. If both valid and invalid Route kinds are specified, the implementation MUST reference the valid Route kinds that have been specified.
attached_routes: u16
AttachedRoutes represents the total number of Routes that have been successfully attached to this Listener.
Successful attachment of a Route to a Listener is based solely on the combination of the AllowedRoutes field on the corresponding Listener and the Route’s ParentRefs field. A Route is successfully attached to a Listener when it is selected by the Listener’s AllowedRoutes field AND the Route has a valid ParentRef selecting the whole Gateway resource or a specific Listener as a parent resource (more detail on attachment semantics can be found in the documentation on the various Route kinds ParentRefs fields). Listener or Route status does not impact successful attachment, i.e. the AttachedRoutes field count MUST be set for Listeners with condition Accepted: false and MUST count successfully attached Routes that may themselves have Accepted: false conditions.
Uses for this field include troubleshooting Route attachment and measuring blast radius/impact of changes to a Listener.
conditions: Vec<Condition>
Conditions describe the current condition of this listener.
Trait Implementations§
source§impl Clone for ListenerStatus
impl Clone for ListenerStatus
source§fn clone(&self) -> ListenerStatus
fn clone(&self) -> ListenerStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListenerStatus
impl Debug for ListenerStatus
source§impl<'de> Deserialize<'de> for ListenerStatus
impl<'de> Deserialize<'de> for ListenerStatus
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 ListenerStatus
impl JsonSchema for ListenerStatus
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 moresource§impl PartialEq for ListenerStatus
impl PartialEq for ListenerStatus
source§fn eq(&self, other: &ListenerStatus) -> bool
fn eq(&self, other: &ListenerStatus) -> bool
self
and other
values to be equal, and is used
by ==
.