IoK8sApiCoreV1PersistentVolumeClaimStatus

Struct IoK8sApiCoreV1PersistentVolumeClaimStatus 

Source
pub struct IoK8sApiCoreV1PersistentVolumeClaimStatus {
    pub access_modes: Vec<String>,
    pub allocated_resources: HashMap<String, IoK8sApimachineryPkgApiResourceQuantity>,
    pub capacity: HashMap<String, IoK8sApimachineryPkgApiResourceQuantity>,
    pub conditions: Vec<IoK8sApiCoreV1PersistentVolumeClaimCondition>,
    pub phase: Option<IoK8sApiCoreV1PersistentVolumeClaimStatusPhase>,
    pub resize_status: Option<String>,
}
Expand description

PersistentVolumeClaimStatus is the current status of a persistent volume claim.

Fields§

§access_modes: Vec<String>

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

§allocated_resources: HashMap<String, IoK8sApimachineryPkgApiResourceQuantity>

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.

§capacity: HashMap<String, IoK8sApimachineryPkgApiResourceQuantity>

Represents the actual resources of the underlying volume.

§conditions: Vec<IoK8sApiCoreV1PersistentVolumeClaimCondition>

Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to ‘ResizeStarted’.

§phase: Option<IoK8sApiCoreV1PersistentVolumeClaimStatusPhase>

Phase represents the current phase of PersistentVolumeClaim.

Possible enum values:

  • "Bound" used for PersistentVolumeClaims that are bound
  • "Lost" used for PersistentVolumeClaims that lost their underlying PersistentVolume. The claim was bound to a PersistentVolume and this volume does not exist any longer and all data on it was lost.
  • "Pending" used for PersistentVolumeClaims that are not yet bound
§resize_status: Option<String>

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.

Trait Implementations§

Source§

impl Clone for IoK8sApiCoreV1PersistentVolumeClaimStatus

Source§

fn clone(&self) -> IoK8sApiCoreV1PersistentVolumeClaimStatus

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for IoK8sApiCoreV1PersistentVolumeClaimStatus

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for IoK8sApiCoreV1PersistentVolumeClaimStatus

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<&IoK8sApiCoreV1PersistentVolumeClaimStatus> for IoK8sApiCoreV1PersistentVolumeClaimStatus

Source§

fn from(value: &IoK8sApiCoreV1PersistentVolumeClaimStatus) -> Self

Converts to this type from the input type.
Source§

impl Serialize for IoK8sApiCoreV1PersistentVolumeClaimStatus

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,