Package io.fabric8.kubernetes.api.model
Class StorageOSPersistentVolumeSource
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.StorageOSPersistentVolumeSource
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<StorageOSPersistentVolumeSourceBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class StorageOSPersistentVolumeSource extends Object implements io.fabric8.kubernetes.api.builder.Editable<StorageOSPersistentVolumeSourceBuilder>, KubernetesResource
Represents a StorageOS persistent volume resource.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StorageOSPersistentVolumeSource()No args constructor for use in serializationStorageOSPersistentVolumeSource(String fsType, Boolean readOnly, ObjectReference secretRef, String volumeName, String volumeNamespace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorageOSPersistentVolumeSourceBuilderedit()Map<String,Object>getAdditionalProperties()StringgetFsType()fsType is the filesystem type to mount.BooleangetReadOnly()readOnly defaults to false (read/write).ObjectReferencegetSecretRef()Represents a StorageOS persistent volume resource.StringgetVolumeName()volumeName is the human-readable name of the StorageOS volume.StringgetVolumeNamespace()volumeNamespace specifies the scope of the volume within StorageOS.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetFsType(String fsType)fsType is the filesystem type to mount.voidsetReadOnly(Boolean readOnly)readOnly defaults to false (read/write).voidsetSecretRef(ObjectReference secretRef)Represents a StorageOS persistent volume resource.voidsetVolumeName(String volumeName)volumeName is the human-readable name of the StorageOS volume.voidsetVolumeNamespace(String volumeNamespace)volumeNamespace specifies the scope of the volume within StorageOS.StorageOSPersistentVolumeSourceBuildertoBuilder()
-
-
-
Constructor Detail
-
StorageOSPersistentVolumeSource
public StorageOSPersistentVolumeSource()
No args constructor for use in serialization
-
StorageOSPersistentVolumeSource
public StorageOSPersistentVolumeSource(String fsType, Boolean readOnly, ObjectReference secretRef, String volumeName, String volumeNamespace)
-
-
Method Detail
-
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". Implicitly inferred to be "ext4" if unspecified.
-
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". Implicitly inferred to be "ext4" if unspecified.
-
getReadOnly
public Boolean getReadOnly()
readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
-
setReadOnly
public void setReadOnly(Boolean readOnly)
readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
-
getSecretRef
public ObjectReference getSecretRef()
Represents a StorageOS persistent volume resource.
-
setSecretRef
public void setSecretRef(ObjectReference secretRef)
Represents a StorageOS persistent volume resource.
-
getVolumeName
public String getVolumeName()
volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.
-
setVolumeName
public void setVolumeName(String volumeName)
volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.
-
getVolumeNamespace
public String getVolumeNamespace()
volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.
-
setVolumeNamespace
public void setVolumeNamespace(String volumeNamespace)
volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.
-
edit
public StorageOSPersistentVolumeSourceBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<StorageOSPersistentVolumeSourceBuilder>
-
toBuilder
public StorageOSPersistentVolumeSourceBuilder toBuilder()
-
-