Package org.cdk8s.plus20
Interface MountOptions
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
VolumeMount
- All Known Implementing Classes:
MountOptions.Jsii$Proxy,VolumeMount.Jsii$Proxy
@Generated(value="jsii-pacmak/1.57.0 (build f614666)", date="2022-04-26T09:02:10.500Z") @Stability(Stable) public interface MountOptions extends software.amazon.jsii.JsiiSerializable
Options for mounts.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMountOptions.BuilderA builder forMountOptionsstatic classMountOptions.Jsii$ProxyAn implementation forMountOptions
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static MountOptions.Builderbuilder()default MountPropagationgetPropagation()Determines how mounts are propagated from the host to container and the other way around.default BooleangetReadOnly()Mounted read-only if true, read-write otherwise (false or unspecified).default StringgetSubPath()Path within the volume from which the container's volume should be mounted.).default StringgetSubPathExpr()Expanded path within the volume from which the container's volume should be mounted.
-
-
-
Method Detail
-
getPropagation
@Stability(Stable) @Nullable default MountPropagation getPropagation()
Determines how mounts are propagated from the host to container and the other way around.When not set, MountPropagationNone is used.
Mount propagation allows for sharing volumes mounted by a Container to other Containers in the same Pod, or even to other Pods on the same node.
Default: MountPropagation.NONE
-
getReadOnly
@Stability(Stable) @Nullable default Boolean getReadOnly()
Mounted read-only if true, read-write otherwise (false or unspecified).Defaults to false.
Default: false
-
getSubPath
@Stability(Stable) @Nullable default String getSubPath()
Path within the volume from which the container's volume should be mounted.).Default: "" the volume's root
-
getSubPathExpr
@Stability(Stable) @Nullable default String getSubPathExpr()
Expanded path within the volume from which the container's volume should be mounted.Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root).
subPathExprandsubPathare mutually exclusive.Default: "" volume's root.
-
builder
@Stability(Stable) static MountOptions.Builder builder()
- Returns:
- a
MountOptions.BuilderofMountOptions
-
-