pub struct BackendTLSPolicyStatusAncestors {
pub ancestor_ref: BackendTLSPolicyStatusAncestorsAncestorRef,
pub conditions: Vec<Condition>,
pub controller_name: String,
}Expand description
PolicyAncestorStatus describes the status of a route with respect to an associated Ancestor.
Ancestors refer to objects that are either the Target of a policy or above it in terms of object hierarchy. For example, if a policy targets a Service, the Policy’s Ancestors are, in order, the Service, the HTTPRoute, the Gateway, and the GatewayClass. Almost always, in this hierarchy, the Gateway will be the most useful object to place Policy status on, so we recommend that implementations SHOULD use Gateway as the PolicyAncestorStatus object unless the designers have a very good reason otherwise.
In the context of policy attachment, the Ancestor is used to distinguish which resource results in a distinct application of this policy. For example, if a policy targets a Service, it may have a distinct result per attached Gateway.
Policies targeting the same resource may have different effects depending on the ancestors of those resources. For example, different Gateways targeting the same Service may have different capabilities, especially if they have different underlying implementations.
For example, in BackendTLSPolicy, the Policy attaches to a Service that is used as a backend in a HTTPRoute that is itself attached to a Gateway. In this case, the relevant object for status is the Gateway, and that is the ancestor object referred to in this status.
Note that a parent is also an ancestor, so for objects where the parent is the relevant object for status, this struct SHOULD still be used.
This struct is intended to be used in a slice that’s effectively a map, with a composite key made up of the AncestorRef and the ControllerName.
Fields§
§ancestor_ref: BackendTLSPolicyStatusAncestorsAncestorRefAncestorRef corresponds with a ParentRef in the spec that this PolicyAncestorStatus struct describes the status of.
conditions: Vec<Condition>Conditions describes the status of the Policy with respect to the given Ancestor.
controller_name: StringControllerName 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 (https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#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.
Trait Implementations§
Source§impl Clone for BackendTLSPolicyStatusAncestors
impl Clone for BackendTLSPolicyStatusAncestors
Source§fn clone(&self) -> BackendTLSPolicyStatusAncestors
fn clone(&self) -> BackendTLSPolicyStatusAncestors
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for BackendTLSPolicyStatusAncestors
impl Default for BackendTLSPolicyStatusAncestors
Source§fn default() -> BackendTLSPolicyStatusAncestors
fn default() -> BackendTLSPolicyStatusAncestors
Source§impl<'de> Deserialize<'de> for BackendTLSPolicyStatusAncestors
impl<'de> Deserialize<'de> for BackendTLSPolicyStatusAncestors
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 BackendTLSPolicyStatusAncestors
impl JsonSchema for BackendTLSPolicyStatusAncestors
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 inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for BackendTLSPolicyStatusAncestors
impl PartialEq for BackendTLSPolicyStatusAncestors
Source§fn eq(&self, other: &BackendTLSPolicyStatusAncestors) -> bool
fn eq(&self, other: &BackendTLSPolicyStatusAncestors) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BackendTLSPolicyStatusAncestors
Auto Trait Implementations§
impl Freeze for BackendTLSPolicyStatusAncestors
impl RefUnwindSafe for BackendTLSPolicyStatusAncestors
impl Send for BackendTLSPolicyStatusAncestors
impl Sync for BackendTLSPolicyStatusAncestors
impl Unpin for BackendTLSPolicyStatusAncestors
impl UnwindSafe for BackendTLSPolicyStatusAncestors
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