Skip to content

Commit

Permalink
Merge pull request #46463 from RomanBednar/pv-last-phase-transition-t…
Browse files Browse the repository at this point in the history
…ime-ga

graduate PersistentVolumeLastPhaseTransitionTime to GA in v1.31
  • Loading branch information
k8s-ci-robot authored Jul 16, 2024
2 parents 81544d5 + c07a108 commit 6786d24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 1 addition & 6 deletions content/en/docs/concepts/storage/persistent-volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -766,18 +766,13 @@ You can see the name of the PVC bound to the PV using `kubectl describe persiste

#### 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 timestamp of when the volume last transitioned its phase. For newly created
volumes the phase is set to `Pending` and `lastPhaseTransitionTime` is set to
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

Each PVC contains a spec and status, which is the specification and status of the claim.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ stages:
- stage: beta
defaultValue: true
fromVersion: "1.29"
toVersion: "1.30"
- stage: stable
defaultValue: true
fromVersion: "1.31"
---
Adds a new field to PersistentVolume
which holds a timestamp of when the volume last transitioned its phase.

0 comments on commit 6786d24

Please sign in to comment.