pub struct WindowsSecurityContextOptions {
pub gmsa_credential_spec: Option<String>,
pub gmsa_credential_spec_name: Option<String>,
pub host_process: Option<bool>,
pub run_as_user_name: Option<String>,
}
Expand description
WindowsSecurityContextOptions contain Windows-specific options and credentials.
Fields
gmsa_credential_spec: Option<String>
GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field.
gmsa_credential_spec_name: Option<String>
GMSACredentialSpecName is the name of the GMSA credential spec to use.
host_process: Option<bool>
HostProcess determines if a container should be run as a ‘Host Process’ container. This field is alpha-level and will only be honored by components that enable the WindowsHostProcessContainers feature flag. Setting this field without the feature flag will result in errors when validating the Pod. All of a Pod’s containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.
run_as_user_name: Option<String>
The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
Trait Implementations
sourceimpl Clone for WindowsSecurityContextOptions
impl Clone for WindowsSecurityContextOptions
sourcefn clone(&self) -> WindowsSecurityContextOptions
fn clone(&self) -> WindowsSecurityContextOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WindowsSecurityContextOptions
impl Debug for WindowsSecurityContextOptions
sourceimpl Default for WindowsSecurityContextOptions
impl Default for WindowsSecurityContextOptions
sourcefn default() -> WindowsSecurityContextOptions
fn default() -> WindowsSecurityContextOptions
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for WindowsSecurityContextOptions
impl<'de> Deserialize<'de> for WindowsSecurityContextOptions
sourcefn deserialize<D>(
deserializer: D
) -> Result<WindowsSecurityContextOptions, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<WindowsSecurityContextOptions, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<WindowsSecurityContextOptions> for WindowsSecurityContextOptions
impl PartialEq<WindowsSecurityContextOptions> for WindowsSecurityContextOptions
sourcefn eq(&self, other: &WindowsSecurityContextOptions) -> bool
fn eq(&self, other: &WindowsSecurityContextOptions) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for WindowsSecurityContextOptions
impl Serialize for WindowsSecurityContextOptions
sourcefn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for WindowsSecurityContextOptions
Auto Trait Implementations
impl RefUnwindSafe for WindowsSecurityContextOptions
impl Send for WindowsSecurityContextOptions
impl Sync for WindowsSecurityContextOptions
impl Unpin for WindowsSecurityContextOptions
impl UnwindSafe for WindowsSecurityContextOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more