pub struct VolumeAttributesClass {
pub driver_name: String,
pub metadata: ObjectMeta,
pub parameters: Option<BTreeMap<String, String>>,
}
Expand description
VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.
Fields§
§driver_name: String
Name of the CSI driver This field is immutable.
metadata: ObjectMeta
Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
parameters: Option<BTreeMap<String, String>>
parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.
This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an “Infeasible” state in the modifyVolumeStatus field.
Trait Implementations§
Source§impl Clone for VolumeAttributesClass
impl Clone for VolumeAttributesClass
Source§fn clone(&self) -> VolumeAttributesClass
fn clone(&self) -> VolumeAttributesClass
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for VolumeAttributesClass
impl Debug for VolumeAttributesClass
Source§impl DeepMerge for VolumeAttributesClass
impl DeepMerge for VolumeAttributesClass
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.Source§impl Default for VolumeAttributesClass
impl Default for VolumeAttributesClass
Source§fn default() -> VolumeAttributesClass
fn default() -> VolumeAttributesClass
Source§impl<'de> Deserialize<'de> for VolumeAttributesClass
impl<'de> Deserialize<'de> for VolumeAttributesClass
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 Metadata for VolumeAttributesClass
impl Metadata for VolumeAttributesClass
Source§impl PartialEq for VolumeAttributesClass
impl PartialEq for VolumeAttributesClass
Source§impl Resource for VolumeAttributesClass
impl Resource for VolumeAttributesClass
Source§const API_VERSION: &'static str = "storage.k8s.io/v1alpha1"
const API_VERSION: &'static str = "storage.k8s.io/v1alpha1"
Resource::GROUP
and Resource::VERSION
(eg "apiextensions.k8s.io/v1beta1"
)
or just the version for resources without a group (eg "v1"
). Read more