Skip to content

Commit

Permalink
add LastPhaseTransitionTime field to PersistentVolume
Browse files Browse the repository at this point in the history
Kubernetes-commit: 1b4de065df46838e0334c57248a8e1fc4253ebc8
  • Loading branch information
RomanBednar authored and k8s-publishing-bot committed Mar 10, 2023
1 parent 6ff1b21 commit e1ce56f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,12 @@ type PersistentVolumeStatus struct {
// for machine parsing and tidy display in the CLI.
// +optional
Reason string `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"`
// lastPhaseTransitionTime is the time the phase transitioned from one to another
// and automatically resets to current time everytime a volume phase transitions.
// This is an alpha field and requires enabling PersistentVolumeLastPhaseTransitionTime feature.
// +featureGate=PersistentVolumeLastPhaseTransitionTime
// +optional
LastPhaseTransitionTime *metav1.Time `json:"lastPhaseTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastPhaseTransitionTime"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down

0 comments on commit e1ce56f

Please sign in to comment.