Package org.cdk8s.plus23.k8s
Class SeccompProfile.Builder
- java.lang.Object
-
- org.cdk8s.plus23.k8s.SeccompProfile.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SeccompProfile>
- Enclosing interface:
- SeccompProfile
@Stability(Stable) public static final class SeccompProfile.Builder extends Object implements software.amazon.jsii.Builder<SeccompProfile>
A builder forSeccompProfile
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SeccompProfile
build()
Builds the configured instance.SeccompProfile.Builder
localhostProfile(String localhostProfile)
Sets the value ofSeccompProfile.getLocalhostProfile()
SeccompProfile.Builder
type(IoK8SApiCoreV1SeccompProfileType type)
Sets the value ofSeccompProfile.getType()
-
-
-
Method Detail
-
type
@Stability(Stable) public SeccompProfile.Builder type(IoK8SApiCoreV1SeccompProfileType type)
Sets the value ofSeccompProfile.getType()
- Parameters:
type
- type indicates which kind of seccomp profile will be applied. Valid options are:. This parameter is required. Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.Possible enum values:
"Localhost"
indicates a profile defined in a file on the node should be used. The file's location relative to/seccomp. "RuntimeDefault"
represents the default container runtime seccomp profile."Unconfined"
indicates no seccomp profile is applied (A.K.A. unconfined).
- Returns:
this
-
localhostProfile
@Stability(Stable) public SeccompProfile.Builder localhostProfile(String localhostProfile)
Sets the value ofSeccompProfile.getLocalhostProfile()
- Parameters:
localhostProfile
- localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must only be set if type is "Localhost".- Returns:
this
-
build
@Stability(Stable) public SeccompProfile build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SeccompProfile>
- Returns:
- a new instance of
SeccompProfile
- Throws:
NullPointerException
- if any required attribute was not provided
-
-