PersistentVolumeClaimVolumeSource class
PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).
Constructors
- PersistentVolumeClaimVolumeSource({required String claimName, bool? readOnly})
-
Default constructor.
const
-
PersistentVolumeClaimVolumeSource.fromJson(Map<
String, dynamic> json) -
Creates a PersistentVolumeClaimVolumeSource from JSON data.
factory
Properties
- claimName → String
-
claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- readOnly → bool?
-
readOnly Will force the ReadOnly setting in VolumeMounts. Default false.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object> - Converts a PersistentVolumeClaimVolumeSource instance to JSON data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited