Merge pull request #46463 from RomanBednar/pv-last-phase-transition-time-ga

graduate PersistentVolumeLastPhaseTransitionTime to GA in v1.31
pull/46801/head
Kubernetes Prow Robot 2024-07-16 07:42:59 -07:00 committed by GitHub
commit 6786d24ee3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 6 deletions

View File

@ -766,18 +766,13 @@ You can see the name of the PVC bound to the PV using `kubectl describe persiste
#### Phase transition timestamp #### Phase transition timestamp
{{< feature-state for_k8s_version="v1.29" state="beta" >}} {{< feature-state feature_gate_name="PersistentVolumeLastPhaseTransitionTime" >}}
The `.status` field for a PersistentVolume can include an alpha `lastPhaseTransitionTime` field. This field records The `.status` field for a PersistentVolume can include an alpha `lastPhaseTransitionTime` field. This field records
the timestamp of when the volume last transitioned its phase. For newly created the timestamp of when the volume last transitioned its phase. For newly created
volumes the phase is set to `Pending` and `lastPhaseTransitionTime` is set to volumes the phase is set to `Pending` and `lastPhaseTransitionTime` is set to
the current time. the current time.
{{< note >}}
You need to enable the `PersistentVolumeLastPhaseTransitionTime` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
to use or see the `lastPhaseTransitionTime` field.
{{< /note >}}
## PersistentVolumeClaims ## PersistentVolumeClaims
Each PVC contains a spec and status, which is the specification and status of the claim. Each PVC contains a spec and status, which is the specification and status of the claim.

View File

@ -13,6 +13,10 @@ stages:
- stage: beta - stage: beta
defaultValue: true defaultValue: true
fromVersion: "1.29" fromVersion: "1.29"
toVersion: "1.30"
- stage: stable
defaultValue: true
fromVersion: "1.31"
--- ---
Adds a new field to PersistentVolume Adds a new field to PersistentVolume
which holds a timestamp of when the volume last transitioned its phase. which holds a timestamp of when the volume last transitioned its phase.