pub struct RbdVolumeSource {
pub fs_type: Option<String>,
pub image: Option<String>,
pub keyring: Option<String>,
pub monitors: Option<Vec<String>>,
pub pool: Option<String>,
pub read_only: Option<bool>,
pub secret_ref: Option<LocalObjectReference>,
pub user: Option<String>,
}Expand description
RBD volumes 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#rbd TODO: how do we prevent errors in the filesystem from compromising the machine +optional
image: Option<String>The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
keyring: Option<String>Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional
monitors: Option<Vec<String>>A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
pool: Option<String>The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional
read_only: Option<bool>ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional
secret_ref: Option<LocalObjectReference>§user: Option<String>The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional
Implementations§
Source§impl RbdVolumeSource
impl RbdVolumeSource
pub fn new() -> RbdVolumeSource
Trait Implementations§
Source§impl Clone for RbdVolumeSource
impl Clone for RbdVolumeSource
Source§fn clone(&self) -> RbdVolumeSource
fn clone(&self) -> RbdVolumeSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RbdVolumeSource
impl Debug for RbdVolumeSource
Source§impl<'de> Deserialize<'de> for RbdVolumeSource
impl<'de> Deserialize<'de> for RbdVolumeSource
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 RbdVolumeSource
Converts Query Parameters representation (style=form, explode=false) to a RbdVolumeSource value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for RbdVolumeSource
Converts Query Parameters representation (style=form, explode=false) to a RbdVolumeSource value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for RbdVolumeSource
impl PartialEq for RbdVolumeSource
Source§impl Serialize for RbdVolumeSource
impl Serialize for RbdVolumeSource
Source§impl ToString for RbdVolumeSource
Converts the RbdVolumeSource 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 RbdVolumeSource
Converts the RbdVolumeSource 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