-
Notifications
You must be signed in to change notification settings - Fork 228
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
Perform finalize processes when job is deleting #1342
Perform finalize processes when job is deleting #1342
Conversation
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
c26516a
to
80c22d8
Compare
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
To avoid squashing @nstogner's contribution. /label tide/merge-method-merge |
/cherry-pick release-0.5 |
@tenzen-y: once the present PR merges, I will cherry-pick it on top of release-0.5 in a new PR and assign it to you. 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. |
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.
Thanks!
/lgtm
/approve
LGTM label has been added. Git tree hash: a0fd8fe5748adcc4b5940c656277f0eeb5e3db06
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alculquicondor, tenzen-y 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 |
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.
/hold
@@ -159,6 +159,11 @@ func (r *JobReconciler) ReconcileGenericJob(ctx context.Context, req ctrl.Reques | |||
return ctrl.Result{}, err | |||
} | |||
} | |||
if !object.GetDeletionTimestamp().IsZero() { |
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.
mental note:
If client.Get
can't find the object, the deletion timestamp is null, which IsZero
knows how to handle.
/hold cancel
@tenzen-y: new pull request created: #1343 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. |
/kind bug |
/release-note-edit
|
What type of PR is this?
/kind bug
What this PR does / why we need it:
If the job is deleting, perform finalize processes. This can prevent the deletion of finalizers in the plain pod integration.
Which issue(s) this PR fixes:
Fixes #1339
Fixes #1340
Special notes for your reviewer:
Does this PR introduce a user-facing change?