Package org.cdk8s.plus23
Class PodSecurityContextProps.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus23.PodSecurityContextProps.Jsii$Proxy
-
- All Implemented Interfaces:
PodSecurityContextProps,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- PodSecurityContextProps
@Stability(Stable) @Internal public static final class PodSecurityContextProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements PodSecurityContextProps
An implementation forPodSecurityContextProps
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface org.cdk8s.plus23.PodSecurityContextProps
PodSecurityContextProps.Builder, PodSecurityContextProps.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(PodSecurityContextProps.Builder builder)Constructor that initializes the object based on literal property values passed by thePodSecurityContextProps.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)BooleangetEnsureNonRoot()Indicates that the container must run as a non-root user.NumbergetFsGroup()Modify the ownership and permissions of pod volumes to this GID.FsGroupChangePolicygetFsGroupChangePolicy()Defines behavior of changing ownership and permission of the volume before being exposed inside Pod.NumbergetGroup()The GID to run the entrypoint of the container process.List<Sysctl>getSysctls()Sysctls hold a list of namespaced sysctls used for the pod.NumbergetUser()The UID to run the entrypoint of the container process.inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(PodSecurityContextProps.Builder builder)
Constructor that initializes the object based on literal property values passed by thePodSecurityContextProps.Builder.
-
-
Method Detail
-
getEnsureNonRoot
public final Boolean getEnsureNonRoot()
Description copied from interface:PodSecurityContextPropsIndicates 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.
Default: false
- Specified by:
getEnsureNonRootin interfacePodSecurityContextProps
-
getFsGroup
public final Number getFsGroup()
Description copied from interface:PodSecurityContextPropsModify the ownership and permissions of pod volumes to this GID.Default: - Volume ownership is not changed.
- Specified by:
getFsGroupin interfacePodSecurityContextProps
-
getFsGroupChangePolicy
public final FsGroupChangePolicy getFsGroupChangePolicy()
Description copied from interface:PodSecurityContextPropsDefines behavior of changing ownership and permission of the volume before being exposed inside Pod.This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir.
Default: FsGroupChangePolicy.ALWAYS
- Specified by:
getFsGroupChangePolicyin interfacePodSecurityContextProps
-
getGroup
public final Number getGroup()
Description copied from interface:PodSecurityContextPropsThe GID to run the entrypoint of the container process.Default: - Group configured by container runtime
- Specified by:
getGroupin interfacePodSecurityContextProps
-
getSysctls
public final List<Sysctl> getSysctls()
Description copied from interface:PodSecurityContextPropsSysctls hold a list of namespaced sysctls used for the pod.Pods with unsupported sysctls (by the container runtime) might fail to launch.
Default: - No sysctls
- Specified by:
getSysctlsin interfacePodSecurityContextProps
-
getUser
public final Number getUser()
Description copied from interface:PodSecurityContextPropsThe UID to run the entrypoint of the container process.Default: - User specified in image metadata
- Specified by:
getUserin interfacePodSecurityContextProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-