pub struct KubernetesOrchestratorConfig {Show 13 fields
pub context: String,
pub scheduler_name: Option<String>,
pub service_labels: BTreeMap<String, String>,
pub service_node_selector: BTreeMap<String, String>,
pub service_account: Option<String>,
pub image_pull_policy: KubernetesImagePullPolicy,
pub aws_external_id_prefix: Option<AwsExternalIdPrefix>,
pub coverage: bool,
pub ephemeral_volume_storage_class: Option<String>,
pub service_fs_group: Option<i64>,
pub name_prefix: Option<String>,
pub collect_pod_metrics: bool,
pub enable_prometheus_scrape_annotations: bool,
}
Expand description
Configures a KubernetesOrchestrator
.
Fields§
§context: String
The name of a Kubernetes context to use, if the Kubernetes configuration is loaded from the local kubeconfig.
scheduler_name: Option<String>
The name of a non-default Kubernetes scheduler to use, if any.
service_labels: BTreeMap<String, String>
Labels to install on every service created by the orchestrator.
service_node_selector: BTreeMap<String, String>
Node selector to install on every service created by the orchestrator.
service_account: Option<String>
The service account that each service should run as, if any.
image_pull_policy: KubernetesImagePullPolicy
The image pull policy to set for services created by the orchestrator.
aws_external_id_prefix: Option<AwsExternalIdPrefix>
An AWS external ID prefix to use when making AWS operations on behalf of the environment.
coverage: bool
Whether to use code coverage mode or not. Always false for production.
ephemeral_volume_storage_class: Option<String>
The Kubernetes StorageClass to use for the ephemeral volume attached to services that request disk.
If unspecified, the orchestrator will refuse to create services that request disk.
service_fs_group: Option<i64>
The optional fs group for service’s pods’ securityContext
.
name_prefix: Option<String>
The prefix to prepend to all object names
collect_pod_metrics: bool
Whether we should attempt to collect metrics from kubernetes
enable_prometheus_scrape_annotations: bool
Whether to annotate pods for prometheus service discovery.
Implementations§
source§impl KubernetesOrchestratorConfig
impl KubernetesOrchestratorConfig
pub fn name_prefix(&self) -> String
Trait Implementations§
source§impl Clone for KubernetesOrchestratorConfig
impl Clone for KubernetesOrchestratorConfig
source§fn clone(&self) -> KubernetesOrchestratorConfig
fn clone(&self) -> KubernetesOrchestratorConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for KubernetesOrchestratorConfig
impl RefUnwindSafe for KubernetesOrchestratorConfig
impl Send for KubernetesOrchestratorConfig
impl Sync for KubernetesOrchestratorConfig
impl Unpin for KubernetesOrchestratorConfig
impl UnwindSafe for KubernetesOrchestratorConfig
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request
source§impl<T, U> OverrideFrom<Option<&T>> for Uwhere
U: OverrideFrom<T>,
impl<T, U> OverrideFrom<Option<&T>> for Uwhere
U: OverrideFrom<T>,
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ProgressEventTimestamp for T
impl<T> ProgressEventTimestamp for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
RustType::into_proto
.source§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
std::ops::AddAssign
, for types that do not implement AddAssign
.