Struct k8s_openapi::api::storage::v1::StorageClass
source · 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<StorageClass> for StorageClass
impl PartialEq<StorageClass> for StorageClass
source§fn eq(&self, other: &StorageClass) -> bool
fn eq(&self, other: &StorageClass) -> bool
self
and other
values to be equal, and is used
by ==
.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