RBDVolumeSource class

Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.

Constructors

RBDVolumeSource({String? fsType, required String image, String? keyring, required List<String> monitors, String? pool, bool? readOnly, LocalObjectReference? secretRef, String? user})
The main constructor.
const
RBDVolumeSource.fromJson(Map<String, dynamic> json)
Creates a RBDVolumeSource from JSON data.

Properties

fsType String?
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.
final
hashCode int
The hash code for this object.
no setterinherited
image String
Image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it.
final
keyring String?
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.
final
monitors List<String>
Monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it.
final
pool String?
Pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it.
final
readOnly bool?
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.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secretRef LocalObjectReference?
SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it.
final
user String?
User is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
Converts a RBDVolumeSource instance to JSON data.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

listFromJson(Iterable<Map<String, dynamic>> list) List<RBDVolumeSource>
Creates a list of RBDVolumeSource from JSON data.