pub struct ResourceConfig {
pub cpu_cores_min: Option<f64>,
pub cpu_cores_max: Option<f64>,
pub memory_min: Option<ConfigSize>,
pub memory_max: Option<ConfigSize>,
pub storage_min: Option<ConfigSize>,
pub storage_max: Option<ConfigSize>,
pub autoscaling: Option<AutoscalingConfig>,
pub storage_class: Option<String>,
pub volume_attributes_class: Option<String>,
pub service_account_name: Option<String>,
pub namespace: Option<String>,
}Fields§
§cpu_cores_min: Option<f64>The minimum number of CPU cores to reserve for an instance of this pipeline
cpu_cores_max: Option<f64>The maximum number of CPU cores to reserve for an instance of this pipeline
memory_min: Option<ConfigSize>The minimum memory to reserve for an instance of this pipeline, such
as "4Gi".
Before release 0.367.0 this setting was memory_mb_min, a number of
megabytes. That name is deprecated but still read.
memory_max: Option<ConfigSize>The maximum memory to reserve for an instance of this pipeline, such
as "16Gi".
Before release 0.367.0 this setting was memory_mb_max, a number of
megabytes. That name is deprecated but still read.
storage_min: Option<ConfigSize>The initial storage to reserve for an instance of this pipeline, such
as "100Gi". Set together with storage_max to enable storage
autoscaling.
Before release 0.367.0 this setting was storage_mb_min, a number of
megabytes. That name is deprecated but still read.
storage_max: Option<ConfigSize>The maximum storage for an instance of this pipeline, such as
"400Gi".
Without storage_min, this much storage is reserved up front.
With storage_min, storage starts there and autoscaling expands it up
to this limit.
Before release 0.367.0 this setting was storage_mb_max, a number of
megabytes. That name is deprecated but still read.
autoscaling: Option<AutoscalingConfig>Autoscaling policy for an instance of this pipeline.
storage_class: Option<String>Storage class to use for an instance of this pipeline. The class determines storage performance such as IOPS and throughput.
volume_attributes_class: Option<String>Kubernetes volume attributes class to use for the storage of an
instance of this pipeline. The class sets mutable storage parameters
such as IOPS and throughput. Requires Kubernetes 1.34 or later (or
the VolumeAttributesClass feature gate) and CSI driver support.
A change takes effect on the next start, also for existing storage, or
while the pipeline runs through a PATCH of its deployment_config.
service_account_name: Option<String>Kubernetes service account name to use for an instance of this pipeline. The account determines permissions and access controls.
namespace: Option<String>Kubernetes namespace to use for an instance of this pipeline. The namespace determines the scope of names for resources created for the pipeline. If not set, the pipeline will be deployed in the same namespace as the control-plane.
Trait Implementations§
Source§impl Clone for ResourceConfig
impl Clone for ResourceConfig
Source§impl Debug for ResourceConfig
impl Debug for ResourceConfig
Source§impl Default for ResourceConfig
impl Default for ResourceConfig
Source§impl<'de> Deserialize<'de> for ResourceConfigwhere
ResourceConfig: Default,
impl<'de> Deserialize<'de> for ResourceConfigwhere
ResourceConfig: Default,
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 From<&ResourceConfig> for DeploymentSpecResources
impl From<&ResourceConfig> for DeploymentSpecResources
Source§fn from(r: &ResourceConfig) -> Self
fn from(r: &ResourceConfig) -> Self
Source§impl PartialEq for ResourceConfig
impl PartialEq for ResourceConfig
Source§impl Serialize for ResourceConfig
impl Serialize for ResourceConfig
impl StructuralPartialEq for ResourceConfig
Auto Trait Implementations§
impl Forget for ResourceConfig
impl Freeze for ResourceConfig
impl Move for ResourceConfig
impl RefUnwindSafe for ResourceConfig
impl Send for ResourceConfig
impl Sync for ResourceConfig
impl Unpin for ResourceConfig
impl UnsafeUnpin for ResourceConfig
impl UnwindSafe for ResourceConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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