pub struct RbdVolumeSource {
pub monitors: Vec<String>,
pub image: Option<String>,
pub fs_type: Option<String>,
pub pool: Option<String>,
pub user: Option<String>,
pub keyring: Option<String>,
pub secret_ref: Option<LocalObjectReference>,
pub read_only: Option<bool>,
}
Expand description
Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.
Fields§
§monitors: Vec<String>
monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +listType=atomic
image: Option<String>
image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
fs_type: Option<String>
fsType is the 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
pool: Option<String>
pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional +default=“rbd”
user: Option<String>
user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional +default=“admin”
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 +default=“/etc/ceph/keyring”
secret_ref: Option<LocalObjectReference>
secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. 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
Implementations§
Source§impl RbdVolumeSource
impl RbdVolumeSource
Sourcepub fn image(&self) -> &str
pub fn image(&self) -> &str
Returns the value of image
, or the default value if image
is unset.
Sourcepub fn fs_type(&self) -> &str
pub fn fs_type(&self) -> &str
Returns the value of fs_type
, or the default value if fs_type
is unset.
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 Default for RbdVolumeSource
impl Default for RbdVolumeSource
Source§impl Hash for RbdVolumeSource
impl Hash for RbdVolumeSource
Source§impl Message for RbdVolumeSource
impl Message for RbdVolumeSource
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.