Package io.fabric8.kubernetes.api.model
Class FlexVolumeSource
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.FlexVolumeSource
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<FlexVolumeSourceBuilder>
,KubernetesResource
,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class FlexVolumeSource extends Object implements io.fabric8.kubernetes.api.builder.Editable<FlexVolumeSourceBuilder>, KubernetesResource
FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FlexVolumeSource()
No args constructor for use in serializationFlexVolumeSource(String driver, String fsType, Map<String,String> options, Boolean readOnly, LocalObjectReference secretRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlexVolumeSourceBuilder
edit()
Map<String,Object>
getAdditionalProperties()
String
getDriver()
driver is the name of the driver to use for this volume.String
getFsType()
fsType is the filesystem type to mount.Map<String,String>
getOptions()
options is Optional: this field holds extra command options if any.Boolean
getReadOnly()
readOnly is Optional: defaults to false (read/write).LocalObjectReference
getSecretRef()
FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setDriver(String driver)
driver is the name of the driver to use for this volume.void
setFsType(String fsType)
fsType is the filesystem type to mount.void
setOptions(Map<String,String> options)
options is Optional: this field holds extra command options if any.void
setReadOnly(Boolean readOnly)
readOnly is Optional: defaults to false (read/write).void
setSecretRef(LocalObjectReference secretRef)
FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.FlexVolumeSourceBuilder
toBuilder()
-
-
-
Method Detail
-
getDriver
public String getDriver()
driver is the name of the driver to use for this volume.
-
setDriver
public void setDriver(String driver)
driver is the name of the driver to use for this volume.
-
getFsType
public String getFsType()
fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
-
setFsType
public void setFsType(String fsType)
fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
-
getOptions
public Map<String,String> getOptions()
options is Optional: this field holds extra command options if any.
-
setOptions
public void setOptions(Map<String,String> options)
options is Optional: this field holds extra command options if any.
-
getReadOnly
public Boolean getReadOnly()
readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
-
setReadOnly
public void setReadOnly(Boolean readOnly)
readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
-
getSecretRef
public LocalObjectReference getSecretRef()
FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.
-
setSecretRef
public void setSecretRef(LocalObjectReference secretRef)
FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.
-
edit
public FlexVolumeSourceBuilder edit()
- Specified by:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<FlexVolumeSourceBuilder>
-
toBuilder
public FlexVolumeSourceBuilder toBuilder()
-
-