public static class CreateLinuxSecurityContextDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CreateLinuxSecurityContextDetails |
build() |
CreateLinuxSecurityContextDetails.Builder |
capabilities(ContainerCapabilities capabilities) |
CreateLinuxSecurityContextDetails.Builder |
copy(CreateLinuxSecurityContextDetails model) |
CreateLinuxSecurityContextDetails.Builder |
isNonRootUserCheckEnabled(Boolean isNonRootUserCheckEnabled)
Indicates if the container must run as a non-root user.
|
CreateLinuxSecurityContextDetails.Builder |
isRootFileSystemReadonly(Boolean isRootFileSystemReadonly)
Determines if the container will have a read-only root file system.
|
CreateLinuxSecurityContextDetails.Builder |
runAsGroup(Integer runAsGroup)
The group ID (GID) to run the entrypoint process of the container.
|
CreateLinuxSecurityContextDetails.Builder |
runAsUser(Integer runAsUser)
The user ID (UID) to run the entrypoint process of the container.
|
public CreateLinuxSecurityContextDetails.Builder runAsUser(Integer runAsUser)
The user ID (UID) to run the entrypoint process of the container. Defaults to user specified UID in container image metadata if not provided. This must be provided if runAsGroup is provided.
runAsUser
- the value to setpublic CreateLinuxSecurityContextDetails.Builder runAsGroup(Integer runAsGroup)
The group ID (GID) to run the entrypoint process of the container. Uses runtime default if not provided.
runAsGroup
- the value to setpublic CreateLinuxSecurityContextDetails.Builder isNonRootUserCheckEnabled(Boolean isNonRootUserCheckEnabled)
Indicates if the container must run as a non-root user. If true, the service validates the container image at runtime to ensure that it is not going to run with UID 0 (root) and fails the container instance creation if the validation fails.
isNonRootUserCheckEnabled
- the value to setpublic CreateLinuxSecurityContextDetails.Builder isRootFileSystemReadonly(Boolean isRootFileSystemReadonly)
Determines if the container will have a read-only root file system. Default value is false.
isRootFileSystemReadonly
- the value to setpublic CreateLinuxSecurityContextDetails.Builder capabilities(ContainerCapabilities capabilities)
public CreateLinuxSecurityContextDetails build()
public CreateLinuxSecurityContextDetails.Builder copy(CreateLinuxSecurityContextDetails model)
Copyright © 2016–2024. All rights reserved.