Struct k8s_openapi::api::storage::v1alpha1::VolumeAttributesClass
source · 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 moresource§const GROUP: &'static str = "storage.k8s.io"
const GROUP: &'static str = "storage.k8s.io"
source§const URL_PATH_SEGMENT: &'static str = "volumeattributesclasses"
const URL_PATH_SEGMENT: &'static str = "volumeattributesclasses"
source§type Scope = ClusterResourceScope
type Scope = ClusterResourceScope
source§impl Serialize for VolumeAttributesClass
impl Serialize for VolumeAttributesClass
impl StructuralPartialEq for VolumeAttributesClass
Auto Trait Implementations§
impl Freeze for VolumeAttributesClass
impl RefUnwindSafe for VolumeAttributesClass
impl Send for VolumeAttributesClass
impl Sync for VolumeAttributesClass
impl Unpin for VolumeAttributesClass
impl UnwindSafe for VolumeAttributesClass
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)