Struct k8s_gateway_api::RouteParentStatus
source · [−]pub struct RouteParentStatus {
pub parent_ref: ParentReference,
pub controller_name: GatewayController,
pub conditions: Vec<Condition>,
}
Expand description
RouteParentStatus describes the status of a route with respect to an associated Parent.
Fields
parent_ref: ParentReference
ParentRef corresponds with a ParentRef in the spec that this RouteParentStatus struct describes the status of.
controller_name: GatewayController
ControllerName is a domain/path string that indicates the name of the controller that wrote this status. This corresponds with the controllerName field on GatewayClass.
Example: “example.net/gateway-controller”.
The format of this field is DOMAIN “/” PATH, where DOMAIN and PATH are valid Kubernetes names.
Controllers MUST populate this field when writing status. Controllers should ensure that entries to status populated with their ControllerName are cleaned up when they are no longer necessary.
conditions: Vec<Condition>
Conditions describes the status of the route with respect to the Gateway. Note that the route’s availability is also subject to the Gateway’s own status conditions and listener status.
If the Route’s ParentRef specifies an existing Gateway that supports Routes of this kind AND that Gateway’s controller has sufficient access, then that Gateway’s controller MUST set the “Accepted” condition on the Route, to indicate whether the route has been accepted or rejected by the Gateway, and why.
A Route MUST be considered “Accepted” if at least one of the Route’s rules is implemented by the Gateway.
There are a number of cases where the “Accepted” condition may not be set due to lack of controller visibility, that includes when:
- The Route refers to a non-existent parent.
- The Route is of a type that the controller does not support.
- The Route is in a namespace the the controller does not have access to.
Trait Implementations
sourceimpl Clone for RouteParentStatus
impl Clone for RouteParentStatus
sourcefn clone(&self) -> RouteParentStatus
fn clone(&self) -> RouteParentStatus
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RouteParentStatus
impl Debug for RouteParentStatus
sourceimpl<'de> Deserialize<'de> for RouteParentStatus
impl<'de> Deserialize<'de> for RouteParentStatus
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl JsonSchema for RouteParentStatus
impl JsonSchema for RouteParentStatus
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the $ref
keyword. Read more
sourceimpl PartialEq<RouteParentStatus> for RouteParentStatus
impl PartialEq<RouteParentStatus> for RouteParentStatus
sourcefn eq(&self, other: &RouteParentStatus) -> bool
fn eq(&self, other: &RouteParentStatus) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RouteParentStatus) -> bool
fn ne(&self, other: &RouteParentStatus) -> bool
This method tests for !=
.
sourceimpl Serialize for RouteParentStatus
impl Serialize for RouteParentStatus
impl StructuralPartialEq for RouteParentStatus
Auto Trait Implementations
impl RefUnwindSafe for RouteParentStatus
impl Send for RouteParentStatus
impl Sync for RouteParentStatus
impl Unpin for RouteParentStatus
impl UnwindSafe for RouteParentStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more