pub struct GatewayListenersAllowedRoutes {
pub kinds: Option<Vec<GatewayListenersAllowedRoutesKinds>>,
pub namespaces: Option<GatewayListenersAllowedRoutesNamespaces>,
}
Expand description
AllowedRoutes defines the types of routes that MAY be attached to a Listener and the trusted namespaces where those Route resources MAY be present.
Although a client request may match multiple route rules, only one rule may ultimately receive the request. Matching precedence MUST be determined in order of the following criteria:
- The most specific match as defined by the Route type.
- The oldest Route based on creation timestamp. For example, a Route with a creation timestamp of “2020-09-08 01:02:03” is given precedence over a Route with a creation timestamp of “2020-09-08 01:02:04”.
- If everything else is equivalent, the Route appearing first in alphabetical order (namespace/name) should be given precedence. For example, foo/bar is given precedence over foo/baz.
All valid rules within a Route attached to this Listener should be implemented. Invalid Route rules can be ignored (sometimes that will mean the full Route). If a Route rule transitions from valid to invalid, support for that Route rule should be dropped to ensure consistency. For example, even if a filter specified by a Route rule is invalid, the rest of the rules within that Route should still be supported.
Support: Core
Fields§
§kinds: Option<Vec<GatewayListenersAllowedRoutesKinds>>
Kinds specifies the groups and kinds of Routes that are allowed to bind to this Gateway Listener. When unspecified or empty, the kinds of Routes selected are determined using the Listener protocol.
A RouteGroupKind MUST correspond to kinds of Routes that are compatible with the application protocol specified in the Listener’s Protocol field. If an implementation does not support or recognize this resource type, it MUST set the “ResolvedRefs” condition to False for this Listener with the “InvalidRouteKinds” reason.
Support: Core
namespaces: Option<GatewayListenersAllowedRoutesNamespaces>
Namespaces indicates namespaces from which Routes may be attached to this Listener. This is restricted to the namespace of this Gateway by default.
Support: Core
Trait Implementations§
source§impl Clone for GatewayListenersAllowedRoutes
impl Clone for GatewayListenersAllowedRoutes
source§fn clone(&self) -> GatewayListenersAllowedRoutes
fn clone(&self) -> GatewayListenersAllowedRoutes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GatewayListenersAllowedRoutes
impl Default for GatewayListenersAllowedRoutes
source§fn default() -> GatewayListenersAllowedRoutes
fn default() -> GatewayListenersAllowedRoutes
source§impl<'de> Deserialize<'de> for GatewayListenersAllowedRoutes
impl<'de> Deserialize<'de> for GatewayListenersAllowedRoutes
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 GatewayListenersAllowedRoutes
impl JsonSchema for GatewayListenersAllowedRoutes
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 GatewayListenersAllowedRoutes
impl PartialEq for GatewayListenersAllowedRoutes
source§fn eq(&self, other: &GatewayListenersAllowedRoutes) -> bool
fn eq(&self, other: &GatewayListenersAllowedRoutes) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for GatewayListenersAllowedRoutes
Auto Trait Implementations§
impl Freeze for GatewayListenersAllowedRoutes
impl RefUnwindSafe for GatewayListenersAllowedRoutes
impl Send for GatewayListenersAllowedRoutes
impl Sync for GatewayListenersAllowedRoutes
impl Unpin for GatewayListenersAllowedRoutes
impl UnwindSafe for GatewayListenersAllowedRoutes
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)