pub struct RunAsUserStrategyOptions {
pub type_: Option<String>,
pub uid: Option<i64>,
pub uid_range_max: Option<i64>,
pub uid_range_min: Option<i64>,
}
Expand description
RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy.
Fields§
§type_: Option<String>
Type is the strategy that will dictate what RunAsUser is used in the SecurityContext.
uid: Option<i64>
UID is the user id that containers must run as. Required for the MustRunAs strategy if not using namespace/service account allocated uids.
uid_range_max: Option<i64>
UIDRangeMax defines the max value for a strategy that allocates by range.
uid_range_min: Option<i64>
UIDRangeMin defines the min value for a strategy that allocates by range.
Trait Implementations§
Source§impl Clone for RunAsUserStrategyOptions
impl Clone for RunAsUserStrategyOptions
Source§fn clone(&self) -> RunAsUserStrategyOptions
fn clone(&self) -> RunAsUserStrategyOptions
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 RunAsUserStrategyOptions
impl Debug for RunAsUserStrategyOptions
Source§impl Default for RunAsUserStrategyOptions
impl Default for RunAsUserStrategyOptions
Source§fn default() -> RunAsUserStrategyOptions
fn default() -> RunAsUserStrategyOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RunAsUserStrategyOptions
impl<'de> Deserialize<'de> for RunAsUserStrategyOptions
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RunAsUserStrategyOptions
impl PartialEq for RunAsUserStrategyOptions
Source§impl Serialize for RunAsUserStrategyOptions
impl Serialize for RunAsUserStrategyOptions
impl StructuralPartialEq for RunAsUserStrategyOptions
Auto Trait Implementations§
impl Freeze for RunAsUserStrategyOptions
impl RefUnwindSafe for RunAsUserStrategyOptions
impl Send for RunAsUserStrategyOptions
impl Sync for RunAsUserStrategyOptions
impl Unpin for RunAsUserStrategyOptions
impl UnwindSafe for RunAsUserStrategyOptions
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