Package io.fabric8.kubernetes.api.model
Class CSIVolumeSource
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.CSIVolumeSource
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<CSIVolumeSourceBuilder>
,KubernetesResource
,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class CSIVolumeSource extends Object implements io.fabric8.kubernetes.api.builder.Editable<CSIVolumeSourceBuilder>, KubernetesResource
Represents a source location of a volume to mount, managed by an external CSI driver- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CSIVolumeSource()
No args constructor for use in serializationCSIVolumeSource(String driver, String fsType, LocalObjectReference nodePublishSecretRef, Boolean readOnly, Map<String,String> volumeAttributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CSIVolumeSourceBuilder
edit()
Map<String,Object>
getAdditionalProperties()
String
getDriver()
driver is the name of the CSI driver that handles this volume.String
getFsType()
fsType to mount.LocalObjectReference
getNodePublishSecretRef()
Represents a source location of a volume to mount, managed by an external CSI driverBoolean
getReadOnly()
readOnly specifies a read-only configuration for the volume.Map<String,String>
getVolumeAttributes()
volumeAttributes stores driver-specific properties that are passed to the CSI driver.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setDriver(String driver)
driver is the name of the CSI driver that handles this volume.void
setFsType(String fsType)
fsType to mount.void
setNodePublishSecretRef(LocalObjectReference nodePublishSecretRef)
Represents a source location of a volume to mount, managed by an external CSI drivervoid
setReadOnly(Boolean readOnly)
readOnly specifies a read-only configuration for the volume.void
setVolumeAttributes(Map<String,String> volumeAttributes)
volumeAttributes stores driver-specific properties that are passed to the CSI driver.CSIVolumeSourceBuilder
toBuilder()
-
-
-
Method Detail
-
getDriver
public String getDriver()
driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.
-
setDriver
public void setDriver(String driver)
driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.
-
getFsType
public String getFsType()
fsType to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.
-
setFsType
public void setFsType(String fsType)
fsType to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.
-
getNodePublishSecretRef
public LocalObjectReference getNodePublishSecretRef()
Represents a source location of a volume to mount, managed by an external CSI driver
-
setNodePublishSecretRef
public void setNodePublishSecretRef(LocalObjectReference nodePublishSecretRef)
Represents a source location of a volume to mount, managed by an external CSI driver
-
getReadOnly
public Boolean getReadOnly()
readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).
-
setReadOnly
public void setReadOnly(Boolean readOnly)
readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).
-
getVolumeAttributes
public Map<String,String> getVolumeAttributes()
volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.
-
setVolumeAttributes
public void setVolumeAttributes(Map<String,String> volumeAttributes)
volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.
-
edit
public CSIVolumeSourceBuilder edit()
- Specified by:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<CSIVolumeSourceBuilder>
-
toBuilder
public CSIVolumeSourceBuilder toBuilder()
-
-