Class V1RBDVolumeSource
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1RBDVolumeSource
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1RBDVolumeSource
extends Object
Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddmonitorsItem
(String monitorsItem) Add an item to the monitors property in a chainable fashion.boolean
Set fsType in a chainable fashion.fsType is the filesystem type of the volume that you want to mount.getImage()
image is the rados image name.keyring is the path to key ring for RBDUser.monitors is a collection of Ceph monitors.getPool()
pool is the rados pool name.readOnly here will force the ReadOnly setting in VolumeMounts.getUser()
user is the rados user name.int
hashCode()
Set image in a chainable fashion.Set keyring in a chainable fashion.Set monitors in a chainable fashion.Set pool in a chainable fashion.Set readOnly in a chainable fashion.secretRef
(V1LocalObjectReference secretRef) Set secretRef in a chainable fashion.void
Set the fsType property valuevoid
Set the image property valuevoid
setKeyring
(String keyring) Set the keyring property valuevoid
setMonitors
(List<@NotNull String> monitors) Set the monitors property valuevoid
Set the pool property valuevoid
setReadOnly
(Boolean readOnly) Set the readOnly property valuevoid
setSecretRef
(V1LocalObjectReference secretRef) Set the secretRef property valuevoid
Set the user property valuetoString()
Set user in a chainable fashion.
-
Field Details
-
JSON_PROPERTY_IMAGE
- See Also:
-
JSON_PROPERTY_MONITORS
- See Also:
-
JSON_PROPERTY_FS_TYPE
- See Also:
-
JSON_PROPERTY_KEYRING
- See Also:
-
JSON_PROPERTY_POOL
- See Also:
-
JSON_PROPERTY_READ_ONLY
- See Also:
-
JSON_PROPERTY_SECRET_REF
- See Also:
-
JSON_PROPERTY_USER
- See Also:
-
-
Constructor Details
-
V1RBDVolumeSource
-
-
Method Details
-
getImage
image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it- Returns:
- the image property value
-
setImage
Set the image property value- Parameters:
image
- property value to set
-
image
Set image in a chainable fashion.- Returns:
- The same instance of V1RBDVolumeSource for chaining.
-
getMonitors
monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it- Returns:
- the monitors property value
-
setMonitors
Set the monitors property value- Parameters:
monitors
- property value to set
-
monitors
Set monitors in a chainable fashion.- Returns:
- The same instance of V1RBDVolumeSource for chaining.
-
addmonitorsItem
Add an item to the monitors property in a chainable fashion.- Returns:
- The same instance of V1RBDVolumeSource for chaining.
-
getFsType
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:
- the fsType property value
-
setFsType
Set the fsType property value- Parameters:
fsType
- property value to set
-
fsType
Set fsType in a chainable fashion.- Returns:
- The same instance of V1RBDVolumeSource for chaining.
-
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- Returns:
- the keyring property value
-
setKeyring
Set the keyring property value- Parameters:
keyring
- property value to set
-
keyring
Set keyring in a chainable fashion.- Returns:
- The same instance of V1RBDVolumeSource for chaining.
-
getPool
pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it- Returns:
- the pool property value
-
setPool
Set the pool property value- Parameters:
pool
- property value to set
-
pool
Set pool in a chainable fashion.- Returns:
- The same instance of V1RBDVolumeSource for chaining.
-
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- Returns:
- the readOnly property value
-
setReadOnly
Set the readOnly property value- Parameters:
readOnly
- property value to set
-
readOnly
Set readOnly in a chainable fashion.- Returns:
- The same instance of V1RBDVolumeSource for chaining.
-
getSecretRef
- Returns:
- the secretRef property value
-
setSecretRef
Set the secretRef property value- Parameters:
secretRef
- property value to set
-
secretRef
Set secretRef in a chainable fashion.- Returns:
- The same instance of V1RBDVolumeSource for chaining.
-
getUser
user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it- Returns:
- the user property value
-
setUser
Set the user property value- Parameters:
user
- property value to set
-
user
Set user in a chainable fashion.- Returns:
- The same instance of V1RBDVolumeSource for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-