-
Notifications
You must be signed in to change notification settings - Fork 39.2k
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
Wait for subPath error event instead of waiting full minute #68689
Conversation
@wongma7: GitHub didn't allow me to request PR reviews from the following users: mkimuram. Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
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. |
/sig storage |
/kind bug |
Init container makes this possible will go back to original |
5358932
to
c610ca3
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: wongma7 If they are not already assigned, you can assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
} | ||
for _, e := range evnts.Items { | ||
switch e.Reason { | ||
case events.KillingContainer, events.FailedToCreateContainer, sysctl.UnsupportedReason, sysctl.ForbiddenReason: |
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.
Are this list of events enough to cover all error events?
If not, won't it be better to take expected reason
as an argument for WaitForErrorEvent
to ensure that the expected event with the expected reason matches here?
@wongma7: PR needs rebase. 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. |
Is this still needed? I think there were changes made to this area that fixed some flakes |
no, #69300 does roughly the same thing. I think waiting "WaitForPodRunning" to timeout is still redundant but we can keep it |
What this PR does / why we need it: Currently, "should fail for new directories when readOnly specified in the volumeSource" always waits for a full minute for the error event to show up. However, the test can end earlier by watching/polling for events.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer: this patch has the side effect of upping our wait time from 1 minute to PodStartTimeout 5 minutes...is this acceptable?
Release note:
/cc @mkimuram