|
| 1 | +--- |
| 2 | +layout: blog |
| 3 | +title: "Kubernetes v1.31: PersistentVolume Last Phase Transition Time Moves to GA" |
| 4 | +date: 2024-08-14 |
| 5 | +slug: last-phase-transition-time-ga |
| 6 | +author: > |
| 7 | + Roman Bednář (Red Hat) |
| 8 | +--- |
| 9 | + |
| 10 | +Announcing the graduation to General Availability (GA) of the PersistentVolume `lastTransitionTime` status |
| 11 | +field, in Kubernetes v1.31! |
| 12 | + |
| 13 | +The Kubernetes SIG Storage team is excited to announce that the "PersistentVolumeLastPhaseTransitionTime" feature, introduced |
| 14 | +as an alpha in Kubernetes v1.28, has now reached GA status and is officially part of the Kubernetes v1.31 release. This enhancement |
| 15 | +helps Kubernetes users understand when a [PersistentVolume](/docs/concepts/storage/persistent-volumes/) transitions between |
| 16 | +different phases, allowing for more efficient and informed resource management. |
| 17 | + |
| 18 | +For a v1.31 cluster, you can now assume that every PersistentVolume object has a |
| 19 | +`.status.lastTransitionTime` field, that holds a timestamp of |
| 20 | +when the volume last transitioned its phase. This change is not immediate; the new field will be populated whenever a PersistentVolume |
| 21 | +is updated and first transitions between phases (`Pending`, `Bound`, or `Released`) after upgrading to Kubernetes v1.31. |
| 22 | + |
| 23 | +## What changed? |
| 24 | + |
| 25 | +The API strategy for updating PersistentVolume objects has been modified to populate the `.status.lastTransitionTime` field with the |
| 26 | +current timestamp whenever a PersistentVolume transitions phases. Users are allowed to set this field manually if needed, but it will |
| 27 | +be overwritten when the PersistentVolume transitions phases again. |
| 28 | + |
| 29 | +For more details, read about |
| 30 | +[Phase transition timestamp](/docs/concepts/storage/persistent-volumes/#phase-transition-timestamp) in the Kubernetes documentation. |
| 31 | +You can also read the previous [blog post](/blog/2023/10/23/persistent-volume-last-phase-transition-time) announcing the feature as alpha in v1.28. |
| 32 | + |
| 33 | +To provide feedback, join our [Kubernetes Storage Special-Interest-Group](https://github.com/kubernetes/community/tree/master/sig-storage) (SIG) |
| 34 | +or participate in discussions on our [public Slack channel](https://app.slack.com/client/T09NY5SBT/C09QZFCE5). |
0 commit comments