Package io.fabric8.kubernetes.api.model
Class CinderVolumeSource
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.CinderVolumeSource
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<CinderVolumeSourceBuilder>
,KubernetesResource
,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class CinderVolumeSource extends Object implements io.fabric8.kubernetes.api.builder.Editable<CinderVolumeSourceBuilder>, KubernetesResource
Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CinderVolumeSource()
No args constructor for use in serializationCinderVolumeSource(String fsType, Boolean readOnly, LocalObjectReference secretRef, String volumeID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CinderVolumeSourceBuilder
edit()
Map<String,Object>
getAdditionalProperties()
String
getFsType()
fsType is the filesystem type to mount.Boolean
getReadOnly()
readOnly defaults to false (read/write).LocalObjectReference
getSecretRef()
Represents a cinder volume resource in Openstack.String
getVolumeID()
volumeID used to identify the volume in cinder.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setFsType(String fsType)
fsType is the filesystem type to mount.void
setReadOnly(Boolean readOnly)
readOnly defaults to false (read/write).void
setSecretRef(LocalObjectReference secretRef)
Represents a cinder volume resource in Openstack.void
setVolumeID(String volumeID)
volumeID used to identify the volume in cinder.CinderVolumeSourceBuilder
toBuilder()
-
-
-
Constructor Detail
-
CinderVolumeSource
public CinderVolumeSource()
No args constructor for use in serialization
-
CinderVolumeSource
public CinderVolumeSource(String fsType, Boolean readOnly, LocalObjectReference secretRef, String volumeID)
-
-
Method Detail
-
getFsType
public String getFsType()
fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
-
setFsType
public void setFsType(String fsType)
fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
-
getReadOnly
public Boolean getReadOnly()
readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
-
setReadOnly
public void setReadOnly(Boolean readOnly)
readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
-
getSecretRef
public LocalObjectReference getSecretRef()
Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.
-
setSecretRef
public void setSecretRef(LocalObjectReference secretRef)
Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.
-
getVolumeID
public String getVolumeID()
volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
-
setVolumeID
public void setVolumeID(String volumeID)
volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
-
edit
public CinderVolumeSourceBuilder edit()
- Specified by:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<CinderVolumeSourceBuilder>
-
toBuilder
public CinderVolumeSourceBuilder toBuilder()
-
-