#[non_exhaustive]pub struct LustreCsiDriverConfig {
pub enabled: bool,
pub enable_legacy_lustre_port: bool,
/* private fields */
}Expand description
Configuration for the Lustre CSI driver.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enabled: boolWhether the Lustre CSI driver is enabled for this cluster.
enable_legacy_lustre_port: bool👎Deprecated
If set to true, the Lustre CSI driver will install Lustre kernel modules using port 6988. This serves as a workaround for a port conflict with the gke-metadata-server. This field is required ONLY under the following conditions:
- The GKE node version is older than 1.33.2-gke.4655000.
- You’re connecting to a Lustre instance that has the
‘gke-support-enabled’ flag.
Deprecated: This flag is no longer required as of GKE node version
1.33.2-gke.4655000, unless you are connecting to a Lustre instance
that has the
gke-support-enabledflag.
Implementations§
Source§impl LustreCsiDriverConfig
impl LustreCsiDriverConfig
pub fn new() -> Self
Sourcepub fn set_enabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_enabled<T: Into<bool>>(self, v: T) -> Self
Sets the value of enabled.
Sourcepub fn set_enable_legacy_lustre_port<T: Into<bool>>(self, v: T) -> Self
👎Deprecated
pub fn set_enable_legacy_lustre_port<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_legacy_lustre_port.
Trait Implementations§
Source§impl Clone for LustreCsiDriverConfig
impl Clone for LustreCsiDriverConfig
Source§fn clone(&self) -> LustreCsiDriverConfig
fn clone(&self) -> LustreCsiDriverConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LustreCsiDriverConfig
impl Debug for LustreCsiDriverConfig
Source§impl Default for LustreCsiDriverConfig
impl Default for LustreCsiDriverConfig
Source§fn default() -> LustreCsiDriverConfig
fn default() -> LustreCsiDriverConfig
Returns the “default value” for a type. Read more
Source§impl Message for LustreCsiDriverConfig
impl Message for LustreCsiDriverConfig
Source§impl PartialEq for LustreCsiDriverConfig
impl PartialEq for LustreCsiDriverConfig
impl StructuralPartialEq for LustreCsiDriverConfig
Auto Trait Implementations§
impl Freeze for LustreCsiDriverConfig
impl RefUnwindSafe for LustreCsiDriverConfig
impl Send for LustreCsiDriverConfig
impl Sync for LustreCsiDriverConfig
impl Unpin for LustreCsiDriverConfig
impl UnwindSafe for LustreCsiDriverConfig
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
Mutably borrows from an owned value. Read more