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 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 ==
.impl StructuralPartialEq for WindowsSecurityContextOptions
Auto Trait Implementations§
impl Freeze for WindowsSecurityContextOptions
impl RefUnwindSafe for WindowsSecurityContextOptions
impl Send for WindowsSecurityContextOptions
impl Sync for WindowsSecurityContextOptions
impl Unpin for WindowsSecurityContextOptions
impl UnwindSafe for WindowsSecurityContextOptions
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)