pub struct SharedVolume {
pub mount_path: String,
pub size: Option<String>,
}Expand description
Declaration of a volume that persists across every step in a workflow
run, including sub-workflows started via type: workflow steps. Backends
that support it (currently just Kubernetes) provision a single volume
per top-level workflow instance and mount it on every step container at
mount_path. Sub-workflows see the same volume because they share the
parent’s isolation domain (namespace, in the K8s case).
Declared once on the top-level workflow (e.g. ci) that orchestrates
the sub-workflows. Declarations on non-root workflows are ignored in
favor of the root’s declaration.
Fields§
§mount_path: StringAbsolute path the volume is mounted at inside every step container.
Typical value: /workspace.
size: Option<String>Optional size override (e.g. "20Gi"). When unset the backend falls
back to its configured default (ClusterConfig::default_shared_volume_size
for the Kubernetes executor).
Trait Implementations§
Source§fn clone(&self) -> SharedVolume
fn clone(&self) -> SharedVolume
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§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§fn eq(&self, other: &SharedVolume) -> bool
fn eq(&self, other: &SharedVolume) -> bool
self and other values to be equal, and is used by ==.