pub struct WindowsSecurityContextOptions {
pub gmsa_credential_spec_name: Option<String>,
pub gmsa_credential_spec: Option<String>,
pub run_as_user_name: Option<String>,
pub host_process: Option<bool>,
}
Expand description
WindowsSecurityContextOptions contain Windows-specific options and credentials.
Fields§
§gmsa_credential_spec_name: Option<String>
GMSACredentialSpecName is the name of the GMSA credential spec to use. +optional
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. +optional
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. +optional
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. +optional
Implementations§
Source§impl WindowsSecurityContextOptions
impl WindowsSecurityContextOptions
Sourcepub fn gmsa_credential_spec_name(&self) -> &str
pub fn gmsa_credential_spec_name(&self) -> &str
Returns the value of gmsa_credential_spec_name
, or the default value if gmsa_credential_spec_name
is unset.
Sourcepub fn gmsa_credential_spec(&self) -> &str
pub fn gmsa_credential_spec(&self) -> &str
Returns the value of gmsa_credential_spec
, or the default value if gmsa_credential_spec
is unset.
Sourcepub fn run_as_user_name(&self) -> &str
pub fn run_as_user_name(&self) -> &str
Returns the value of run_as_user_name
, or the default value if run_as_user_name
is unset.
Sourcepub fn host_process(&self) -> bool
pub fn host_process(&self) -> bool
Returns the value of host_process
, or the default value if host_process
is unset.
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 Hash for WindowsSecurityContextOptions
impl Hash for WindowsSecurityContextOptions
Source§impl Message for WindowsSecurityContextOptions
impl Message for WindowsSecurityContextOptions
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.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 ==
.