pub struct StorageClass {
pub allow_volume_expansion: Option<bool>,
pub allowed_topologies: Option<Vec<TopologySelectorTerm>>,
pub metadata: ObjectMeta,
pub mount_options: Option<Vec<String>>,
pub parameters: Option<BTreeMap<String, String>>,
pub provisioner: String,
pub reclaim_policy: Option<String>,
pub volume_binding_mode: Option<String>,
}
Expand description
StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.
StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.
Fields§
§allow_volume_expansion: Option<bool>
allowVolumeExpansion shows whether the storage class allow volume expand.
allowed_topologies: Option<Vec<TopologySelectorTerm>>
allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.
metadata: ObjectMeta
Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
mount_options: Option<Vec<String>>
mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. [“ro”, “soft”]. Not validated - mount of the PVs will simply fail if one is invalid.
parameters: Option<BTreeMap<String, String>>
parameters holds the parameters for the provisioner that should create volumes of this storage class.
provisioner: String
provisioner indicates the type of the provisioner.
reclaim_policy: Option<String>
reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.
volume_binding_mode: Option<String>
volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.
Trait Implementations§
Source§impl Clone for StorageClass
impl Clone for StorageClass
Source§fn clone(&self) -> StorageClass
fn clone(&self) -> StorageClass
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for StorageClass
impl Debug for StorageClass
Source§impl DeepMerge for StorageClass
impl DeepMerge for StorageClass
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.Source§impl Default for StorageClass
impl Default for StorageClass
Source§fn default() -> StorageClass
fn default() -> StorageClass
Source§impl<'de> Deserialize<'de> for StorageClass
impl<'de> Deserialize<'de> for StorageClass
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 ListableResource for StorageClass
impl ListableResource for StorageClass
Source§impl Metadata for StorageClass
impl Metadata for StorageClass
Source§impl PartialEq for StorageClass
impl PartialEq for StorageClass
Source§impl Resource for StorageClass
impl Resource for StorageClass
Source§const API_VERSION: &'static str = "storage.k8s.io/v1"
const API_VERSION: &'static str = "storage.k8s.io/v1"
Resource::GROUP
and Resource::VERSION
(eg "apiextensions.k8s.io/v1beta1"
)
or just the version for resources without a group (eg "v1"
). Read more