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 FlexVolumeSourceBuilderedit()Map<String,Object>getAdditionalProperties()StringgetDriver()driver is the name of the driver to use for this volume.StringgetFsType()fsType is the filesystem type to mount.Map<String,String>getOptions()options is Optional: this field holds extra command options if any.BooleangetReadOnly()readOnly is Optional: defaults to false (read/write).LocalObjectReferencegetSecretRef()FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetDriver(String driver)driver is the name of the driver to use for this volume.voidsetFsType(String fsType)fsType is the filesystem type to mount.voidsetOptions(Map<String,String> options)options is Optional: this field holds extra command options if any.voidsetReadOnly(Boolean readOnly)readOnly is Optional: defaults to false (read/write).voidsetSecretRef(LocalObjectReference secretRef)FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.FlexVolumeSourceBuildertoBuilder()
-
-
-
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:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<FlexVolumeSourceBuilder>
-
toBuilder
public FlexVolumeSourceBuilder toBuilder()
-
-