Package org.cdk8s.plus24
Class PodSecurityContextProps.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus24.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.plus24.PodSecurityContextProps
PodSecurityContextProps.Builder, PodSecurityContextProps.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Jsii$Proxy(PodSecurityContextProps.Builder builder)
Constructor that initializes the object based on literal property values passed by thePodSecurityContextProps.Builder
.protected
Jsii$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()
boolean
equals(Object o)
Boolean
getEnsureNonRoot()
Indicates that the container must run as a non-root user.Number
getFsGroup()
Modify the ownership and permissions of pod volumes to this GID.FsGroupChangePolicy
getFsGroupChangePolicy()
Defines behavior of changing ownership and permission of the volume before being exposed inside Pod.Number
getGroup()
The GID to run the entrypoint of the container process.List<Sysctl>
getSysctls()
Sysctls hold a list of namespaced sysctls used for the pod.Number
getUser()
The UID to run the entrypoint of the container process.int
hashCode()
-
-
-
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:PodSecurityContextProps
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.
Default: true
- Specified by:
getEnsureNonRoot
in interfacePodSecurityContextProps
-
getFsGroup
public final Number getFsGroup()
Description copied from interface:PodSecurityContextProps
Modify the ownership and permissions of pod volumes to this GID.Default: - Volume ownership is not changed.
- Specified by:
getFsGroup
in interfacePodSecurityContextProps
-
getFsGroupChangePolicy
public final FsGroupChangePolicy getFsGroupChangePolicy()
Description copied from interface:PodSecurityContextProps
Defines 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:
getFsGroupChangePolicy
in interfacePodSecurityContextProps
-
getGroup
public final Number getGroup()
Description copied from interface:PodSecurityContextProps
The GID to run the entrypoint of the container process.Default: - Group configured by container runtime
- Specified by:
getGroup
in interfacePodSecurityContextProps
-
getSysctls
public final List<Sysctl> getSysctls()
Description copied from interface:PodSecurityContextProps
Sysctls 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:
getSysctls
in interfacePodSecurityContextProps
-
getUser
public final Number getUser()
Description copied from interface:PodSecurityContextProps
The UID to run the entrypoint of the container process.Default: - User specified in image metadata
- Specified by:
getUser
in interfacePodSecurityContextProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
-