Package k8s.io.api.core.v1
Interface Generated.VolumeMountOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Generated.VolumeMount,Generated.VolumeMount.Builder
- Enclosing class:
- Generated
public static interface Generated.VolumeMountOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetMountPath()Path within the container at which the volume should be mounted.com.google.protobuf.ByteStringgetMountPathBytes()Path within the container at which the volume should be mounted.StringgetMountPropagation()mountPropagation determines how mounts are propagated from the host to container and the other way around.com.google.protobuf.ByteStringgetMountPropagationBytes()mountPropagation determines how mounts are propagated from the host to container and the other way around.StringgetName()This must match the Name of a Volume.com.google.protobuf.ByteStringgetNameBytes()This must match the Name of a Volume.booleangetReadOnly()Mounted read-only if true, read-write otherwise (false or unspecified).StringgetRecursiveReadOnly()RecursiveReadOnly specifies whether read-only mounts should be handled recursively.com.google.protobuf.ByteStringgetRecursiveReadOnlyBytes()RecursiveReadOnly specifies whether read-only mounts should be handled recursively.StringgetSubPath()Path within the volume from which the container's volume should be mounted.com.google.protobuf.ByteStringgetSubPathBytes()Path within the volume from which the container's volume should be mounted.StringgetSubPathExpr()Expanded path within the volume from which the container's volume should be mounted.com.google.protobuf.ByteStringgetSubPathExprBytes()Expanded path within the volume from which the container's volume should be mounted.booleanhasMountPath()Path within the container at which the volume should be mounted.booleanhasMountPropagation()mountPropagation determines how mounts are propagated from the host to container and the other way around.booleanhasName()This must match the Name of a Volume.booleanhasReadOnly()Mounted read-only if true, read-write otherwise (false or unspecified).booleanhasRecursiveReadOnly()RecursiveReadOnly specifies whether read-only mounts should be handled recursively.booleanhasSubPath()Path within the volume from which the container's volume should be mounted.booleanhasSubPathExpr()Expanded path within the volume from which the container's volume should be mounted.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasName
boolean hasName()
This must match the Name of a Volume.
optional string name = 1;- Returns:
- Whether the name field is set.
-
getName
String getName()
This must match the Name of a Volume.
optional string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
This must match the Name of a Volume.
optional string name = 1;- Returns:
- The bytes for name.
-
hasReadOnly
boolean hasReadOnly()
Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. +optional
optional bool readOnly = 2;- Returns:
- Whether the readOnly field is set.
-
getReadOnly
boolean getReadOnly()
Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. +optional
optional bool readOnly = 2;- Returns:
- The readOnly.
-
hasRecursiveReadOnly
boolean hasRecursiveReadOnly()
RecursiveReadOnly specifies whether read-only mounts should be handled recursively. If ReadOnly is false, this field has no meaning and must be unspecified. If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). If this field is not specified, it is treated as an equivalent of Disabled. +featureGate=RecursiveReadOnlyMounts +optional
optional string recursiveReadOnly = 7;- Returns:
- Whether the recursiveReadOnly field is set.
-
getRecursiveReadOnly
String getRecursiveReadOnly()
RecursiveReadOnly specifies whether read-only mounts should be handled recursively. If ReadOnly is false, this field has no meaning and must be unspecified. If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). If this field is not specified, it is treated as an equivalent of Disabled. +featureGate=RecursiveReadOnlyMounts +optional
optional string recursiveReadOnly = 7;- Returns:
- The recursiveReadOnly.
-
getRecursiveReadOnlyBytes
com.google.protobuf.ByteString getRecursiveReadOnlyBytes()
RecursiveReadOnly specifies whether read-only mounts should be handled recursively. If ReadOnly is false, this field has no meaning and must be unspecified. If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). If this field is not specified, it is treated as an equivalent of Disabled. +featureGate=RecursiveReadOnlyMounts +optional
optional string recursiveReadOnly = 7;- Returns:
- The bytes for recursiveReadOnly.
-
hasMountPath
boolean hasMountPath()
Path within the container at which the volume should be mounted. Must not contain ':'.
optional string mountPath = 3;- Returns:
- Whether the mountPath field is set.
-
getMountPath
String getMountPath()
Path within the container at which the volume should be mounted. Must not contain ':'.
optional string mountPath = 3;- Returns:
- The mountPath.
-
getMountPathBytes
com.google.protobuf.ByteString getMountPathBytes()
Path within the container at which the volume should be mounted. Must not contain ':'.
optional string mountPath = 3;- Returns:
- The bytes for mountPath.
-
hasSubPath
boolean hasSubPath()
Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). +optional
optional string subPath = 4;- Returns:
- Whether the subPath field is set.
-
getSubPath
String getSubPath()
Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). +optional
optional string subPath = 4;- Returns:
- The subPath.
-
getSubPathBytes
com.google.protobuf.ByteString getSubPathBytes()
Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). +optional
optional string subPath = 4;- Returns:
- The bytes for subPath.
-
hasMountPropagation
boolean hasMountPropagation()
mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None). +optional
optional string mountPropagation = 5;- Returns:
- Whether the mountPropagation field is set.
-
getMountPropagation
String getMountPropagation()
mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None). +optional
optional string mountPropagation = 5;- Returns:
- The mountPropagation.
-
getMountPropagationBytes
com.google.protobuf.ByteString getMountPropagationBytes()
mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None). +optional
optional string mountPropagation = 5;- Returns:
- The bytes for mountPropagation.
-
hasSubPathExpr
boolean hasSubPathExpr()
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). SubPathExpr and SubPath are mutually exclusive. +optional
optional string subPathExpr = 6;- Returns:
- Whether the subPathExpr field is set.
-
getSubPathExpr
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). SubPathExpr and SubPath are mutually exclusive. +optional
optional string subPathExpr = 6;- Returns:
- The subPathExpr.
-
getSubPathExprBytes
com.google.protobuf.ByteString getSubPathExprBytes()
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). SubPathExpr and SubPath are mutually exclusive. +optional
optional string subPathExpr = 6;- Returns:
- The bytes for subPathExpr.
-
-