pub struct GcePersistentDiskVolumeSource {
pub fs_type: Option<String>,
pub partition: Option<i32>,
pub pd_name: Option<String>,
pub read_only: Option<bool>,
}Expand description
A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.
Fields§
§fs_type: Option<String>Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk TODO: how do we prevent errors in the filesystem from compromising the machine +optional
partition: Option<i32>The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk +optional
pd_name: Option<String>Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
read_only: Option<bool>ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk +optional
Implementations§
Trait Implementations§
Source§impl Clone for GcePersistentDiskVolumeSource
impl Clone for GcePersistentDiskVolumeSource
Source§fn clone(&self) -> GcePersistentDiskVolumeSource
fn clone(&self) -> GcePersistentDiskVolumeSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for GcePersistentDiskVolumeSource
impl<'de> Deserialize<'de> for GcePersistentDiskVolumeSource
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 FromStr for GcePersistentDiskVolumeSource
Converts Query Parameters representation (style=form, explode=false) to a GcePersistentDiskVolumeSource value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for GcePersistentDiskVolumeSource
Converts Query Parameters representation (style=form, explode=false) to a GcePersistentDiskVolumeSource value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for GcePersistentDiskVolumeSource
impl PartialEq for GcePersistentDiskVolumeSource
Source§fn eq(&self, other: &GcePersistentDiskVolumeSource) -> bool
fn eq(&self, other: &GcePersistentDiskVolumeSource) -> bool
self and other values to be equal, and is used by ==.Source§impl ToString for GcePersistentDiskVolumeSource
Converts the GcePersistentDiskVolumeSource value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for GcePersistentDiskVolumeSource
Converts the GcePersistentDiskVolumeSource value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer