Skip to content
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

Don't reconcile JobSets with deletion timestamp set #562

Merged
merged 1 commit into from
May 9, 2024

Conversation

danielvegamyhre
Copy link
Contributor

@danielvegamyhre danielvegamyhre commented May 9, 2024

Fixes #561

Confirmed the fix works via manual testing.

Without the changes in this PR, I deployed a JobSet with 100 Jobs and attempted to delete with foreground cascading deletion policy via k delete jobset paralleljobs --cascade=foreground, and observed the behavior described in #561 where the child jobs and services are continually being recreated after being deleted.

With the changes in this PR, I deployed the same JobSet of 100 Jobs and deleted it with foreground cascading deletion policy, and confirmed the foreground deletion worked as expected.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: danielvegamyhre

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 9, 2024
Copy link

netlify bot commented May 9, 2024

Deploy Preview for kubernetes-sigs-jobset canceled.

Name Link
🔨 Latest commit 96b366b
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-jobset/deploys/663c367e94cb7600082d79fc

@danielvegamyhre
Copy link
Contributor Author

cc @ahg-g @kannon92

@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 9, 2024
@ahg-g
Copy link
Contributor

ahg-g commented May 9, 2024

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 9, 2024
@k8s-ci-robot k8s-ci-robot merged commit 7752a36 into kubernetes-sigs:main May 9, 2024
12 checks passed
k8s-ci-robot added a commit that referenced this pull request May 9, 2024
…-#562-upstream-release-0.5

Automated cherry pick of #562: don't reconcile jobsets with deletion timestamp set
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
3 participants