pub struct BackendTLSPolicyStatusAncestorsAncestorRef {
pub group: Option<String>,
pub kind: Option<String>,
pub name: String,
pub namespace: Option<String>,
pub port: Option<i32>,
pub section_name: Option<String>,
}Expand description
AncestorRef corresponds with a ParentRef in the spec that this PolicyAncestorStatus struct describes the status of.
Fields§
§group: Option<String>Group is the group of the referent. When unspecified, “gateway.networking.k8s.io” is inferred. To set the core API group (such as for a “Service” kind referent), Group must be explicitly set to “” (empty string).
Support: Core
kind: Option<String>Kind is kind of the referent.
There are two kinds of parent resources with “Core” support:
- Gateway (Gateway conformance profile)
- Service (Mesh conformance profile, ClusterIP Services only)
Support for other resources is Implementation-Specific.
name: StringName is the name of the referent.
Support: Core
namespace: Option<String>Namespace is the namespace of the referent. When unspecified, this refers to the local namespace of the Route.
Note that there are specific rules for ParentRefs which cross namespace boundaries. Cross-namespace references are only valid if they are explicitly allowed by something in the namespace they are referring to. For example: Gateway has the AllowedRoutes field, and ReferenceGrant provides a generic way to enable any other kind of cross-namespace reference.
Support: Core
port: Option<i32>Port is the network port this Route targets. It can be interpreted differently based on the type of parent resource.
When the parent resource is a Gateway, this targets all listeners
listening on the specified port that also support this kind of Route(and
select this Route). It’s not recommended to set Port unless the
networking behaviors specified in a Route must apply to a specific port
as opposed to a listener(s) whose port(s) may be changed. When both Port
and SectionName are specified, the name and port of the selected listener
must match both specified values.
Implementations MAY choose to support other parent resources. Implementations supporting other types of parent resources MUST clearly document how/if Port is interpreted.
For the purpose of status, an attachment is considered successful as long as the parent resource accepts it partially. For example, Gateway listeners can restrict which Routes can attach to them by Route kind, namespace, or hostname. If 1 of 2 Gateway listeners accept attachment from the referencing Route, the Route MUST be considered successfully attached. If no Gateway listeners accept attachment from this Route, the Route MUST be considered detached from the Gateway.
Support: Extended
section_name: Option<String>SectionName is the name of a section within the target resource. In the following resources, SectionName is interpreted as the following:
- Gateway: Listener name. When both Port (experimental) and SectionName are specified, the name and port of the selected listener must match both specified values.
- Service: Port name. When both Port (experimental) and SectionName are specified, the name and port of the selected listener must match both specified values.
Implementations MAY choose to support attaching Routes to other resources. If that is the case, they MUST clearly document how SectionName is interpreted.
When unspecified (empty string), this will reference the entire resource. For the purpose of status, an attachment is considered successful if at least one section in the parent resource accepts it. For example, Gateway listeners can restrict which Routes can attach to them by Route kind, namespace, or hostname. If 1 of 2 Gateway listeners accept attachment from the referencing Route, the Route MUST be considered successfully attached. If no Gateway listeners accept attachment from this Route, the Route MUST be considered detached from the Gateway.
Support: Core
Trait Implementations§
Source§impl Clone for BackendTLSPolicyStatusAncestorsAncestorRef
impl Clone for BackendTLSPolicyStatusAncestorsAncestorRef
Source§fn clone(&self) -> BackendTLSPolicyStatusAncestorsAncestorRef
fn clone(&self) -> BackendTLSPolicyStatusAncestorsAncestorRef
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for BackendTLSPolicyStatusAncestorsAncestorRef
impl Default for BackendTLSPolicyStatusAncestorsAncestorRef
Source§fn default() -> BackendTLSPolicyStatusAncestorsAncestorRef
fn default() -> BackendTLSPolicyStatusAncestorsAncestorRef
Source§impl<'de> Deserialize<'de> for BackendTLSPolicyStatusAncestorsAncestorRef
impl<'de> Deserialize<'de> for BackendTLSPolicyStatusAncestorsAncestorRef
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 BackendTLSPolicyStatusAncestorsAncestorRef
impl JsonSchema for BackendTLSPolicyStatusAncestorsAncestorRef
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 BackendTLSPolicyStatusAncestorsAncestorRef
impl PartialEq for BackendTLSPolicyStatusAncestorsAncestorRef
Source§fn eq(&self, other: &BackendTLSPolicyStatusAncestorsAncestorRef) -> bool
fn eq(&self, other: &BackendTLSPolicyStatusAncestorsAncestorRef) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BackendTLSPolicyStatusAncestorsAncestorRef
Auto Trait Implementations§
impl Freeze for BackendTLSPolicyStatusAncestorsAncestorRef
impl RefUnwindSafe for BackendTLSPolicyStatusAncestorsAncestorRef
impl Send for BackendTLSPolicyStatusAncestorsAncestorRef
impl Sync for BackendTLSPolicyStatusAncestorsAncestorRef
impl Unpin for BackendTLSPolicyStatusAncestorsAncestorRef
impl UnwindSafe for BackendTLSPolicyStatusAncestorsAncestorRef
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