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
sourceimpl Clone for GatewayListenersAllowedRoutes
impl Clone for GatewayListenersAllowedRoutes
sourcefn clone(&self) -> GatewayListenersAllowedRoutes
fn clone(&self) -> GatewayListenersAllowedRoutes
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for GatewayListenersAllowedRoutes
impl Debug for GatewayListenersAllowedRoutes
sourceimpl<'de> Deserialize<'de> for GatewayListenersAllowedRoutes
impl<'de> Deserialize<'de> for GatewayListenersAllowedRoutes
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>,
sourceimpl JsonSchema for GatewayListenersAllowedRoutes
impl JsonSchema for GatewayListenersAllowedRoutes
sourcefn schema_name() -> String
fn schema_name() -> String
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read more