pub struct PoolerTemplateSpecEphemeralContainersSecurityContext {
pub allow_privilege_escalation: Option<bool>,
pub capabilities: Option<PoolerTemplateSpecEphemeralContainersSecurityContextCapabilities>,
pub privileged: Option<bool>,
pub proc_mount: Option<String>,
pub read_only_root_filesystem: Option<bool>,
pub run_as_group: Option<i64>,
pub run_as_non_root: Option<bool>,
pub run_as_user: Option<i64>,
pub se_linux_options: Option<PoolerTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions>,
pub seccomp_profile: Option<PoolerTemplateSpecEphemeralContainersSecurityContextSeccompProfile>,
pub windows_options: Option<PoolerTemplateSpecEphemeralContainersSecurityContextWindowsOptions>,
}Expand description
Optional: SecurityContext defines the security options the ephemeral container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
Fields§
§allow_privilege_escalation: Option<bool>AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows.
capabilities: Option<PoolerTemplateSpecEphemeralContainersSecurityContextCapabilities>The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows.
privileged: Option<bool>Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows.
proc_mount: Option<String>procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows.
read_only_root_filesystem: Option<bool>Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows.
run_as_group: Option<i64>The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.
run_as_non_root: Option<bool>Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
run_as_user: Option<i64>The UID to run the entrypoint of the container process. Defaults to 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. Note that this field cannot be set when spec.os.name is windows.
se_linux_options: Option<PoolerTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions>The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.
seccomp_profile: Option<PoolerTemplateSpecEphemeralContainersSecurityContextSeccompProfile>The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows.
windows_options: Option<PoolerTemplateSpecEphemeralContainersSecurityContextWindowsOptions>The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux.
Trait Implementations§
Source§impl Clone for PoolerTemplateSpecEphemeralContainersSecurityContext
impl Clone for PoolerTemplateSpecEphemeralContainersSecurityContext
Source§fn clone(&self) -> PoolerTemplateSpecEphemeralContainersSecurityContext
fn clone(&self) -> PoolerTemplateSpecEphemeralContainersSecurityContext
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for PoolerTemplateSpecEphemeralContainersSecurityContext
impl Default for PoolerTemplateSpecEphemeralContainersSecurityContext
Source§fn default() -> PoolerTemplateSpecEphemeralContainersSecurityContext
fn default() -> PoolerTemplateSpecEphemeralContainersSecurityContext
Source§impl<'de> Deserialize<'de> for PoolerTemplateSpecEphemeralContainersSecurityContext
impl<'de> Deserialize<'de> for PoolerTemplateSpecEphemeralContainersSecurityContext
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 JsonSchema for PoolerTemplateSpecEphemeralContainersSecurityContext
impl JsonSchema for PoolerTemplateSpecEphemeralContainersSecurityContext
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for PoolerTemplateSpecEphemeralContainersSecurityContext
impl RefUnwindSafe for PoolerTemplateSpecEphemeralContainersSecurityContext
impl Send for PoolerTemplateSpecEphemeralContainersSecurityContext
impl Sync for PoolerTemplateSpecEphemeralContainersSecurityContext
impl Unpin for PoolerTemplateSpecEphemeralContainersSecurityContext
impl UnwindSafe for PoolerTemplateSpecEphemeralContainersSecurityContext
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§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more