Class V1RBDVolumeSource
java.lang.Object
io.kubernetes.client.openapi.models.V1RBDVolumeSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.0")
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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMonitorsItem
(String monitorsItem) boolean
static V1RBDVolumeSource
Create an instance of V1RBDVolumeSource given an JSON stringfsType 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.Get secretRefgetUser()
user is the rados user name.int
hashCode()
secretRef
(V1LocalObjectReference secretRef) void
void
void
setKeyring
(String keyring) void
setMonitors
(List<String> monitors) void
void
setReadOnly
(Boolean readOnly) void
setSecretRef
(V1LocalObjectReference secretRef) void
toJson()
Convert an instance of V1RBDVolumeSource to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_FS_TYPE
- See Also:
-
SERIALIZED_NAME_IMAGE
- See Also:
-
SERIALIZED_NAME_KEYRING
- See Also:
-
SERIALIZED_NAME_MONITORS
- See Also:
-
SERIALIZED_NAME_POOL
- See Also:
-
SERIALIZED_NAME_READ_ONLY
- See Also:
-
SERIALIZED_NAME_SECRET_REF
- See Also:
-
SERIALIZED_NAME_USER
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1RBDVolumeSource
public V1RBDVolumeSource()
-
-
Method Details
-
fsType
-
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:
- fsType
-
setFsType
-
image
-
getImage
image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it- Returns:
- image
-
setImage
-
keyring
-
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:
- keyring
-
setKeyring
-
monitors
-
addMonitorsItem
-
getMonitors
monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it- Returns:
- monitors
-
setMonitors
-
pool
-
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:
- pool
-
setPool
-
readOnly
-
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:
- readOnly
-
setReadOnly
-
secretRef
-
getSecretRef
Get secretRef- Returns:
- secretRef
-
setSecretRef
-
user
-
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:
- user
-
setUser
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to V1RBDVolumeSource
-
fromJson
Create an instance of V1RBDVolumeSource given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1RBDVolumeSource
- Throws:
IOException
- if the JSON string is invalid with respect to V1RBDVolumeSource
-
toJson
Convert an instance of V1RBDVolumeSource to an JSON string- Returns:
- JSON string
-