Struct k8s_openapi::api::storage::v1beta1::CSIDriverSpec [−][src]
pub struct CSIDriverSpec { pub attach_required: Option<bool>, pub pod_info_on_mount: Option<bool>, }
Expand description
CSIDriverSpec is the specification of a CSIDriver.
Fields
attach_required: Option<bool>
attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called.
pod_info_on_mount: Option<bool>
If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. “csi.storage.k8s.io/pod.name”: pod.Name “csi.storage.k8s.io/pod.namespace”: pod.Namespace “csi.storage.k8s.io/pod.uid”: string(pod.UID)
Trait Implementations
impl Clone for CSIDriverSpec
[src]
impl Clone for CSIDriverSpec
[src]fn clone(&self) -> CSIDriverSpec
[src]
fn clone(&self) -> CSIDriverSpec
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for CSIDriverSpec
[src]
impl Debug for CSIDriverSpec
[src]impl Default for CSIDriverSpec
[src]
impl Default for CSIDriverSpec
[src]fn default() -> CSIDriverSpec
[src]
fn default() -> CSIDriverSpec
[src]Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for CSIDriverSpec
[src]
impl<'de> Deserialize<'de> for CSIDriverSpec
[src]fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<CSIDriverSpec> for CSIDriverSpec
[src]
impl PartialEq<CSIDriverSpec> for CSIDriverSpec
[src]fn eq(&self, other: &CSIDriverSpec) -> bool
[src]
fn eq(&self, other: &CSIDriverSpec) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &CSIDriverSpec) -> bool
[src]
fn ne(&self, other: &CSIDriverSpec) -> bool
[src]This method tests for !=
.
impl Serialize for CSIDriverSpec
[src]
impl Serialize for CSIDriverSpec
[src]impl StructuralPartialEq for CSIDriverSpec
[src]
Auto Trait Implementations
impl RefUnwindSafe for CSIDriverSpec
impl Send for CSIDriverSpec
impl Sync for CSIDriverSpec
impl Unpin for CSIDriverSpec
impl UnwindSafe for CSIDriverSpec
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,