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.68.0 (build b45f2f6)", date="2022-09-25T03:33:25.377Z") @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 classAllowedHostPathV1Beta1.BuilderA builder forAllowedHostPathV1Beta1static classAllowedHostPathV1Beta1.Jsii$ProxyAn implementation forAllowedHostPathV1Beta1
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static AllowedHostPathV1Beta1.Builderbuilder()default StringgetPathPrefix()pathPrefix is the path prefix that the host volume must match.default BooleangetReadOnly()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:
/foowould allow/foo,/foo/and/foo/bar/foowould not allow/foodor/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.BuilderofAllowedHostPathV1Beta1
-
-