PersistentVolumeClaimStatusPatch

data class PersistentVolumeClaimStatusPatch(val accessModes: List<String>? = null, val allocatedResources: Map<String, String>? = null, val capacity: Map<String, String>? = null, val conditions: List<PersistentVolumeClaimConditionPatch>? = null, val phase: String? = null, val resizeStatus: String? = null)

PersistentVolumeClaimStatus is the current status of a persistent volume claim.

Constructors

Link copied to clipboard
constructor(accessModes: List<String>? = null, allocatedResources: Map<String, String>? = null, capacity: Map<String, String>? = null, conditions: List<PersistentVolumeClaimConditionPatch>? = null, phase: String? = null, resizeStatus: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val accessModes: List<String>? = null

accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1

Link copied to clipboard

allocatedResources is the storage resource within AllocatedResources tracks the capacity allocated to a PVC. It may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.

Link copied to clipboard
val capacity: Map<String, String>? = null

capacity represents the actual resources of the underlying volume.

Link copied to clipboard

conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'.

Link copied to clipboard
val phase: String? = null

phase represents the current phase of PersistentVolumeClaim.

Link copied to clipboard
val resizeStatus: String? = null

resizeStatus stores status of resize operation. ResizeStatus is not set by default but when expansion is complete resizeStatus is set to empty string by resize controller or kubelet. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.