#[non_exhaustive]pub struct GatewayServiceMesh {
pub http_route: String,
pub service: String,
pub deployment: String,
pub route_update_wait_time: Option<Duration>,
pub stable_cutback_duration: Option<Duration>,
pub pod_selector_label: String,
pub route_destinations: Option<RouteDestinations>,
/* private fields */
}
Expand description
Information about the Kubernetes Gateway API service mesh configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.http_route: String
Required. Name of the Gateway API HTTPRoute.
service: String
Required. Name of the Kubernetes Service.
deployment: String
Required. Name of the Kubernetes Deployment whose traffic is managed by the specified HTTPRoute and Service.
route_update_wait_time: Option<Duration>
Optional. The time to wait for route updates to propagate. The maximum configurable time is 3 hours, in seconds format. If unspecified, there is no wait time.
stable_cutback_duration: Option<Duration>
Optional. The amount of time to migrate traffic back from the canary Service to the original Service during the stable phase deployment. If specified, must be between 15s and 3600s. If unspecified, there is no cutback time.
pod_selector_label: String
Optional. The label to use when selecting Pods for the Deployment and Service resources. This label must already be present in both resources.
route_destinations: Option<RouteDestinations>
Optional. Route destinations allow configuring the Gateway API HTTPRoute to be deployed to additional clusters. This option is available for multi-cluster service mesh set ups that require the route to exist in the clusters that call the service. If unspecified, the HTTPRoute will only be deployed to the Target cluster.
Implementations§
Source§impl GatewayServiceMesh
impl GatewayServiceMesh
pub fn new() -> Self
Sourcepub fn set_http_route<T: Into<String>>(self, v: T) -> Self
pub fn set_http_route<T: Into<String>>(self, v: T) -> Self
Sets the value of http_route.
Sourcepub fn set_service<T: Into<String>>(self, v: T) -> Self
pub fn set_service<T: Into<String>>(self, v: T) -> Self
Sets the value of service.
Sourcepub fn set_deployment<T: Into<String>>(self, v: T) -> Self
pub fn set_deployment<T: Into<String>>(self, v: T) -> Self
Sets the value of deployment.
Sourcepub fn set_route_update_wait_time<T>(self, v: T) -> Self
pub fn set_route_update_wait_time<T>(self, v: T) -> Self
Sets the value of route_update_wait_time.
Sourcepub fn set_or_clear_route_update_wait_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_route_update_wait_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of route_update_wait_time.
Sourcepub fn set_stable_cutback_duration<T>(self, v: T) -> Self
pub fn set_stable_cutback_duration<T>(self, v: T) -> Self
Sets the value of stable_cutback_duration.
Sourcepub fn set_or_clear_stable_cutback_duration<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_stable_cutback_duration<T>(self, v: Option<T>) -> Self
Sets or clears the value of stable_cutback_duration.
Sourcepub fn set_pod_selector_label<T: Into<String>>(self, v: T) -> Self
pub fn set_pod_selector_label<T: Into<String>>(self, v: T) -> Self
Sets the value of pod_selector_label.
Sourcepub fn set_route_destinations<T>(self, v: T) -> Selfwhere
T: Into<RouteDestinations>,
pub fn set_route_destinations<T>(self, v: T) -> Selfwhere
T: Into<RouteDestinations>,
Sets the value of route_destinations.
Sourcepub fn set_or_clear_route_destinations<T>(self, v: Option<T>) -> Selfwhere
T: Into<RouteDestinations>,
pub fn set_or_clear_route_destinations<T>(self, v: Option<T>) -> Selfwhere
T: Into<RouteDestinations>,
Sets or clears the value of route_destinations.
Trait Implementations§
Source§impl Clone for GatewayServiceMesh
impl Clone for GatewayServiceMesh
Source§fn clone(&self) -> GatewayServiceMesh
fn clone(&self) -> GatewayServiceMesh
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more