Package org.cdk8s.plus24.k8s
Interface AllowedHostPathV1Beta1
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AllowedHostPathV1Beta1.Jsii$Proxy
@Generated(value="jsii-pacmak/1.69.0 (build f656c31)", date="2022-10-05T02:57:36.334Z") @Stability(Stable) public interface AllowedHostPathV1Beta1 extends software.amazon.jsii.JsiiSerializable
AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use.It requires the path prefix to be defined.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AllowedHostPathV1Beta1.Builder
A builder forAllowedHostPathV1Beta1
static class
AllowedHostPathV1Beta1.Jsii$Proxy
An implementation forAllowedHostPathV1Beta1
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static AllowedHostPathV1Beta1.Builder
builder()
default String
getPathPrefix()
pathPrefix is the path prefix that the host volume must match.default Boolean
getReadOnly()
when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.
-
-
-
Method Detail
-
getPathPrefix
@Stability(Stable) @Nullable default String getPathPrefix()
pathPrefix is the path prefix that the host volume must match.It does not support
*
. Trailing slashes are trimmed when validating the path prefix with a host path.Examples:
/foo
would allow/foo
,/foo/
and/foo/bar
/foo
would not allow/food
or/etc/foo
-
getReadOnly
@Stability(Stable) @Nullable default Boolean getReadOnly()
when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.
-
builder
@Stability(Stable) static AllowedHostPathV1Beta1.Builder builder()
- Returns:
- a
AllowedHostPathV1Beta1.Builder
ofAllowedHostPathV1Beta1
-
-