pub struct ClusterVolumeSpecAccessModeInlineItem {
pub accessibility_requirements: Option<ClusterVolumeSpecAccessModeInlineItemAccessibilityRequirementsInlineItem>,
pub availability: Option<String>,
pub capacity_range: Option<ClusterVolumeSpecAccessModeInlineItemCapacityRangeInlineItem>,
pub mount_volume: Option<Value>,
pub scope: Option<String>,
pub secrets: Option<Vec<ClusterVolumeSpecAccessModeInlineItemSecretsInlineItem>>,
pub sharing: Option<String>,
}Expand description
Defines how the volume is used by tasks.
Fields§
§accessibility_requirements: Option<ClusterVolumeSpecAccessModeInlineItemAccessibilityRequirementsInlineItem>Requirements for the accessible topology of the volume. These fields are optional. For an in-depth description of what these fields mean, see the CSI specification.
availability: Option<String>The availability of the volume for use in tasks.
activeThe volume is fully available for scheduling on the clusterpauseNo new workloads should use the volume, but existing workloads are not stopped.drainAll workloads using this volume should be stopped and rescheduled, and no new ones should be started.
capacity_range: Option<ClusterVolumeSpecAccessModeInlineItemCapacityRangeInlineItem>The desired capacity that the volume should be created with. If empty, the plugin will decide the capacity.
mount_volume: Option<Value>Options for using this volume as a Mount-type volume.
Either MountVolume or BlockVolume, but not both, must be
present.properties: FsType: type: “string” description: | Specifies the filesystem type for the mount volume. Optional. MountFlags: type: “array” description: | Flags to pass when mounting the volume. Optional. items: type: “string” BlockVolume: type: “object” description: | Options for using this volume as a Block-type volume. Intentionally empty.
scope: Option<String>The set of nodes this volume can be used on at one time.
singleThe volume may only be scheduled to one node at a time.multithe volume may be scheduled to any supported number of nodes at a time.
secrets: Option<Vec<ClusterVolumeSpecAccessModeInlineItemSecretsInlineItem>>Swarm Secrets that are passed to the CSI storage plugin when operating on this volume.
sharing: Option<String>The number and way that different tasks can use this volume at one time.
noneThe volume may only be used by one task at a time.readonlyThe volume may be used by any number of tasks, but they all must mount the volume as readonlyonewriterThe volume may be used by any number of tasks, but only one may mount it as read/write.allThe volume may have any number of readers and writers.
Trait Implementations§
Source§impl Clone for ClusterVolumeSpecAccessModeInlineItem
impl Clone for ClusterVolumeSpecAccessModeInlineItem
Source§fn clone(&self) -> ClusterVolumeSpecAccessModeInlineItem
fn clone(&self) -> ClusterVolumeSpecAccessModeInlineItem
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for ClusterVolumeSpecAccessModeInlineItem
impl<'de> Deserialize<'de> for ClusterVolumeSpecAccessModeInlineItem
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ClusterVolumeSpecAccessModeInlineItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ClusterVolumeSpecAccessModeInlineItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ClusterVolumeSpecAccessModeInlineItem
impl PartialEq for ClusterVolumeSpecAccessModeInlineItem
Source§fn eq(&self, other: &ClusterVolumeSpecAccessModeInlineItem) -> bool
fn eq(&self, other: &ClusterVolumeSpecAccessModeInlineItem) -> bool
self and other values to be equal, and is used by ==.