Class RBDPersistentVolumeSource.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.RBDPersistentVolumeSource.Builder
-
- Enclosing class:
- RBDPersistentVolumeSource
public static class RBDPersistentVolumeSource.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RBDPersistentVolumeSource.Builder
addToMonitors(java.lang.String addToMonitors)
RBDPersistentVolumeSource
build()
RBDPersistentVolumeSource.Builder
clearMonitors()
RBDPersistentVolumeSource.Builder
fsType(java.lang.String fsType)
fsType is the filesystem type of the volume that you want to mount.RBDPersistentVolumeSource.Builder
image(@NonNull java.lang.String image)
image is the rados image name.RBDPersistentVolumeSource.Builder
keyring(java.lang.String keyring)
keyring is the path to key ring for RBDUser.RBDPersistentVolumeSource.Builder
monitors(java.util.Collection<? extends java.lang.String> monitors)
RBDPersistentVolumeSource.Builder
pool(java.lang.String pool)
pool is the rados pool name.RBDPersistentVolumeSource.Builder
readOnly(java.lang.Boolean readOnly)
readOnly here will force the ReadOnly setting in VolumeMounts.RBDPersistentVolumeSource.Builder
secretRef(SecretReference secretRef)
java.lang.String
toString()
RBDPersistentVolumeSource.Builder
user(java.lang.String user)
user is the rados user name.
-
-
-
Method Detail
-
fsType
public RBDPersistentVolumeSource.Builder fsType(java.lang.String fsType)
fsType is the 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- Returns:
this
.
-
image
public RBDPersistentVolumeSource.Builder image(@NonNull @NonNull java.lang.String image)
image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it- Returns:
this
.
-
keyring
public RBDPersistentVolumeSource.Builder keyring(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- Returns:
this
.
-
addToMonitors
public RBDPersistentVolumeSource.Builder addToMonitors(java.lang.String addToMonitors)
-
monitors
public RBDPersistentVolumeSource.Builder monitors(java.util.Collection<? extends java.lang.String> monitors)
-
clearMonitors
public RBDPersistentVolumeSource.Builder clearMonitors()
-
pool
public RBDPersistentVolumeSource.Builder pool(java.lang.String pool)
pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it- Returns:
this
.
-
readOnly
public RBDPersistentVolumeSource.Builder readOnly(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- Returns:
this
.
-
secretRef
public RBDPersistentVolumeSource.Builder secretRef(SecretReference secretRef)
- Returns:
this
.
-
user
public RBDPersistentVolumeSource.Builder user(java.lang.String user)
user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it- Returns:
this
.
-
build
public RBDPersistentVolumeSource build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-