Class SeccompProfile.SeccompProfileBuilder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.SeccompProfile.SeccompProfileBuilder
-
- Enclosing class:
- SeccompProfile
public static class SeccompProfile.SeccompProfileBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SeccompProfile
build()
SeccompProfile.SeccompProfileBuilder
localhostProfile(java.lang.String localhostProfile)
localhostProfile indicates a profile defined in a file on the node should be used.java.lang.String
toString()
SeccompProfile.SeccompProfileBuilder
type(@NonNull java.lang.String type)
type indicates which kind of seccomp profile will be applied.
-
-
-
Method Detail
-
localhostProfile
public SeccompProfile.SeccompProfileBuilder localhostProfile(java.lang.String 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
.
-
type
public SeccompProfile.SeccompProfileBuilder type(@NonNull @NonNull java.lang.String type)
type indicates which kind of seccomp profile will be applied. Valid options are: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.
- Returns:
this
.
-
build
public SeccompProfile build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-