-
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
Ignore not found in kubectl wait --for=delete
#90969
Ignore not found in kubectl wait --for=delete
#90969
Conversation
/assign @seans3 |
b23647c
to
6c39b62
Compare
/retest |
2 similar comments
/retest |
/retest |
/cc @brianpursley Can you help me to review this? Thanks! |
Are we sure we want to add a new flag for this, instead of just changing the behavior of waiting for delete? It seems like it is already trying to handle not found here, but I wonder if it needs more. I don't know off-hand if What about in
I'm not entirely opposed to having a command-line option, but I'm trying to imagine when I would not want to set this when I'm waiting for a deletion, or a case where I would want to set this when I'm waiting for a condition. |
@brianpursley I tried your suggestion and apparently it doesn't work because the
It's will firstly send the request to get the info and that's where error happens :)
|
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.
I'm also leaning towards what Brian said, since we already ignore not found, I'd make it explicit there as well.
7b5ec1c
to
5e050c7
Compare
/retest |
kubectl wait --for=delete
/retest |
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.
Oh, and please squash your changes.
5e050c7
to
5ed1f17
Compare
5ed1f17
to
3d2d95e
Compare
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.
/lgtm
/approve
/milestone v1.20
/priority important-longterm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: soltysh, zhouya0 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 |
Changing kind per linked issue. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
If the condition of
kubectl wait
ifdelete
, then we should ignore 404 not found errors.Before:
With this PR:
Which issue(s) this PR fixes:
Fixes ##87747
Special notes for your reviewer:
/cc @soltysh
Does this PR introduce a user-facing change?: