Interface EksPodSecurityContext.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<EksPodSecurityContext.Builder,,EksPodSecurityContext> SdkBuilder<EksPodSecurityContext.Builder,,EksPodSecurityContext> SdkPojo
- Enclosing class:
EksPodSecurityContext
-
Method Summary
Modifier and TypeMethodDescriptionA special supplemental group that is applied to all containers in the pod.runAsGroup(Long runAsGroup) The primary group ID that runs containers in the pod when a container does not specify its own group ID.runAsNonRoot(Boolean runAsNonRoot) Specifies whether Kubernetes validates that containers in the pod don't run as the root user unless a container specifies an overriding value.The user ID that runs containers in the pod when a container does not specify its own user ID.default EksPodSecurityContext.BuilderseccompProfile(Consumer<EksSeccompProfile.Builder> seccompProfile) The default seccomp profile for containers in the pod.seccompProfile(EksSeccompProfile seccompProfile) The default seccomp profile for containers in the pod.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
runAsUser
The user ID that runs containers in the pod when a container does not specify its own user ID. The supported value range is
0through2147483647.- Parameters:
runAsUser- The user ID that runs containers in the pod when a container does not specify its own user ID. The supported value range is0through2147483647.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runAsGroup
The primary group ID that runs containers in the pod when a container does not specify its own group ID. The supported value range is
0through2147483647.- Parameters:
runAsGroup- The primary group ID that runs containers in the pod when a container does not specify its own group ID. The supported value range is0through2147483647.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runAsNonRoot
Specifies whether Kubernetes validates that containers in the pod don't run as the root user unless a container specifies an overriding value.
- Parameters:
runAsNonRoot- Specifies whether Kubernetes validates that containers in the pod don't run as the root user unless a container specifies an overriding value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
seccompProfile
The default seccomp profile for containers in the pod. A container-level seccomp profile overrides this value.
- Parameters:
seccompProfile- The default seccomp profile for containers in the pod. A container-level seccomp profile overrides this value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
seccompProfile
default EksPodSecurityContext.Builder seccompProfile(Consumer<EksSeccompProfile.Builder> seccompProfile) The default seccomp profile for containers in the pod. A container-level seccomp profile overrides this value.
This is a convenience method that creates an instance of theEksSeccompProfile.Builderavoiding the need to create one manually viaEksSeccompProfile.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toseccompProfile(EksSeccompProfile).- Parameters:
seccompProfile- a consumer that will call methods onEksSeccompProfile.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
fsGroup
A special supplemental group that is applied to all containers in the pod. Some volume types allow Kubernetes to change the ownership and permissions of the volume contents to this group when the volume is mounted. The supported value range is
0through2147483647.- Parameters:
fsGroup- A special supplemental group that is applied to all containers in the pod. Some volume types allow Kubernetes to change the ownership and permissions of the volume contents to this group when the volume is mounted. The supported value range is0through2147483647.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-