#[non_exhaustive]pub struct EvictionGracePeriod {
pub memory_available: String,
pub nodefs_available: String,
pub nodefs_inodes_free: String,
pub imagefs_available: String,
pub imagefs_inodes_free: String,
pub pid_available: String,
/* private fields */
}Expand description
Eviction grace periods are grace periods for each eviction signal.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.memory_available: StringOptional. Grace period for eviction due to memory available signal. Sample format: “10s”. Must be >= 0. See https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/#eviction-signals
nodefs_available: StringOptional. Grace period for eviction due to nodefs available signal. Sample format: “10s”. Must be >= 0. See https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/#eviction-signals
nodefs_inodes_free: StringOptional. Grace period for eviction due to nodefs inodes free signal. Sample format: “10s”. Must be >= 0. See https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/#eviction-signals
imagefs_available: StringOptional. Grace period for eviction due to imagefs available signal. Sample format: “10s”. Must be >= 0. See https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/#eviction-signals
imagefs_inodes_free: StringOptional. Grace period for eviction due to imagefs inodes free signal. Sample format: “10s”. Must be >= 0. See https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/#eviction-signals
pid_available: StringOptional. Grace period for eviction due to pid available signal. Sample format: “10s”. Must be >= 0. See https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/#eviction-signals
Implementations§
Source§impl EvictionGracePeriod
impl EvictionGracePeriod
pub fn new() -> Self
Sourcepub fn set_memory_available<T: Into<String>>(self, v: T) -> Self
pub fn set_memory_available<T: Into<String>>(self, v: T) -> Self
Sets the value of memory_available.
Sourcepub fn set_nodefs_available<T: Into<String>>(self, v: T) -> Self
pub fn set_nodefs_available<T: Into<String>>(self, v: T) -> Self
Sets the value of nodefs_available.
Sourcepub fn set_nodefs_inodes_free<T: Into<String>>(self, v: T) -> Self
pub fn set_nodefs_inodes_free<T: Into<String>>(self, v: T) -> Self
Sets the value of nodefs_inodes_free.
Sourcepub fn set_imagefs_available<T: Into<String>>(self, v: T) -> Self
pub fn set_imagefs_available<T: Into<String>>(self, v: T) -> Self
Sets the value of imagefs_available.
Sourcepub fn set_imagefs_inodes_free<T: Into<String>>(self, v: T) -> Self
pub fn set_imagefs_inodes_free<T: Into<String>>(self, v: T) -> Self
Sets the value of imagefs_inodes_free.
Sourcepub fn set_pid_available<T: Into<String>>(self, v: T) -> Self
pub fn set_pid_available<T: Into<String>>(self, v: T) -> Self
Sets the value of pid_available.
Trait Implementations§
Source§impl Clone for EvictionGracePeriod
impl Clone for EvictionGracePeriod
Source§fn clone(&self) -> EvictionGracePeriod
fn clone(&self) -> EvictionGracePeriod
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more