Struct k8s_openapi::api::core::v1::WindowsSecurityContextOptions
source · 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<WindowsSecurityContextOptions> for WindowsSecurityContextOptions
impl PartialEq<WindowsSecurityContextOptions> 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 ==
.