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. 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§
Source§impl Clone for WindowsSecurityContextOptions
impl Clone for WindowsSecurityContextOptions
Source§fn clone(&self) -> WindowsSecurityContextOptions
fn clone(&self) -> WindowsSecurityContextOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl DeepMerge for WindowsSecurityContextOptions
impl DeepMerge for WindowsSecurityContextOptions
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.Source§impl Default for WindowsSecurityContextOptions
impl Default for WindowsSecurityContextOptions
Source§fn default() -> WindowsSecurityContextOptions
fn default() -> WindowsSecurityContextOptions
Source§impl<'de> Deserialize<'de> for WindowsSecurityContextOptions
impl<'de> Deserialize<'de> for WindowsSecurityContextOptions
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>,
Source§impl PartialEq for WindowsSecurityContextOptions
impl PartialEq for WindowsSecurityContextOptions
Source§fn eq(&self, other: &WindowsSecurityContextOptions) -> bool
fn eq(&self, other: &WindowsSecurityContextOptions) -> bool
self
and other
values to be equal, and is used by ==
.