-
Notifications
You must be signed in to change notification settings - Fork 38.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PersistentVolume last phase transition time #116469
PersistentVolume last phase transition time #116469
Conversation
6b5921d
to
aa2fbed
Compare
aa2fbed
to
27f58f3
Compare
019c6f7
to
1136681
Compare
/remove-sig api-machinery |
@@ -66,7 +69,13 @@ func (persistentvolumeStrategy) PrepareForCreate(ctx context.Context, obj runtim | |||
pv := obj.(*api.PersistentVolume) | |||
pv.Status = api.PersistentVolumeStatus{} | |||
|
|||
pvutil.DropDisabledFields(&pv.Spec, nil) | |||
if utilfeature.DefaultFeatureGate.Enabled(features.PersistentVolumeLastPhaseTransitionTime) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added.
ae937f9
to
b74fe28
Compare
}, | ||
{ | ||
name: "feature disabled: pv does not have phase and timestamp", | ||
fg: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be flipped to false, and the status should be empty
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected.
b74fe28
to
294f5c9
Compare
/lgtm |
LGTM label has been added. Git tree hash: 99e12fb430f27ffb7369ec51d1622217a881c0a9
|
/milestone v1.28 |
1.28 exception approval: https://kubernetes.slack.com/archives/C2C40FMNF/p1689859135443509 |
/retest-required |
@RomanBednar: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/triage accepted |
What type of PR is this?
/kind feature
What this PR does / why we need it:
KEP-3762: kubernetes/enhancements#3796
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
None.
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: