Class RBDPersistentVolumeSource
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.RBDPersistentVolumeSource
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class RBDPersistentVolumeSource extends java.lang.Object implements com.marcnuri.yakc.model.Model
Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RBDPersistentVolumeSource.Builder
-
Constructor Summary
Constructors Constructor Description RBDPersistentVolumeSource()
RBDPersistentVolumeSource(java.lang.String fsType, @NonNull java.lang.String image, java.lang.String keyring, @NonNull java.util.List<java.lang.String> monitors, java.lang.String pool, java.lang.Boolean readOnly, SecretReference secretRef, java.lang.String user)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RBDPersistentVolumeSource.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getFsType()
Filesystem type of the volume that you want to mount.@NonNull java.lang.String
getImage()
The rados image name.java.lang.String
getKeyring()
Keyring is the path to key ring for RBDUser.@NonNull java.util.List<java.lang.String>
getMonitors()
A collection of Ceph monitors.java.lang.String
getPool()
The rados pool name.java.lang.Boolean
getReadOnly()
ReadOnly here will force the ReadOnly setting in VolumeMounts.SecretReference
getSecretRef()
java.lang.String
getUser()
The rados user name.int
hashCode()
void
setFsType(java.lang.String fsType)
Filesystem type of the volume that you want to mount.void
setImage(@NonNull java.lang.String image)
The rados image name.void
setKeyring(java.lang.String keyring)
Keyring is the path to key ring for RBDUser.void
setMonitors(@NonNull java.util.List<java.lang.String> monitors)
A collection of Ceph monitors.void
setPool(java.lang.String pool)
The rados pool name.void
setReadOnly(java.lang.Boolean readOnly)
ReadOnly here will force the ReadOnly setting in VolumeMounts.void
setSecretRef(SecretReference secretRef)
void
setUser(java.lang.String user)
The rados user name.RBDPersistentVolumeSource.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
RBDPersistentVolumeSource
public RBDPersistentVolumeSource(java.lang.String fsType, @NonNull @NonNull java.lang.String image, java.lang.String keyring, @NonNull @NonNull java.util.List<java.lang.String> monitors, java.lang.String pool, java.lang.Boolean readOnly, SecretReference secretRef, java.lang.String user)
-
RBDPersistentVolumeSource
public RBDPersistentVolumeSource()
-
-
Method Detail
-
builder
public static RBDPersistentVolumeSource.Builder builder()
-
toBuilder
public RBDPersistentVolumeSource.Builder toBuilder()
-
getFsType
public java.lang.String getFsType()
Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
-
getImage
@NonNull public @NonNull java.lang.String getImage()
The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
-
getKeyring
public java.lang.String getKeyring()
Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
-
getMonitors
@NonNull public @NonNull java.util.List<java.lang.String> getMonitors()
A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
-
getPool
public java.lang.String getPool()
The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
-
getReadOnly
public java.lang.Boolean getReadOnly()
ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
-
getSecretRef
public SecretReference getSecretRef()
-
getUser
public java.lang.String getUser()
The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
-
setFsType
public void setFsType(java.lang.String fsType)
Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
-
setImage
public void setImage(@NonNull @NonNull java.lang.String image)
The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
-
setKeyring
public void setKeyring(java.lang.String keyring)
Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
-
setMonitors
public void setMonitors(@NonNull @NonNull java.util.List<java.lang.String> monitors)
A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
-
setPool
public void setPool(java.lang.String pool)
The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
-
setReadOnly
public void setReadOnly(java.lang.Boolean readOnly)
ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
-
setSecretRef
public void setSecretRef(SecretReference secretRef)
-
setUser
public void setUser(java.lang.String user)
The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-