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

Propagate Job pod template updates to suspended jobs when resuming #590

Merged
merged 1 commit into from
Jun 2, 2024

Conversation

danielvegamyhre
Copy link
Contributor

@danielvegamyhre danielvegamyhre commented Jun 1, 2024

Fixes #586

This PR refactors the JobSet controller logic (which previously only propagated Job pod template spec updates to nodeSelectors to child Jobs when resuming them) to also propagate updates to labels, annotations, and tolerations.

It also updates the relevant integration test to verify updates to all of these values are propagated correctly.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 1, 2024
@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 requested a review from ahg-g June 1, 2024 18:09
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 1, 2024
@k8s-ci-robot k8s-ci-robot requested a review from kannon92 June 1, 2024 18:09
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jun 1, 2024
Copy link

netlify bot commented Jun 1, 2024

Deploy Preview for kubernetes-sigs-jobset canceled.

Name Link
🔨 Latest commit 441a2ed
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-jobset/deploys/665b63e5cb91450007bc04fc

@danielvegamyhre
Copy link
Contributor Author

@alculquicondor @ahg-g for review, please take a look when you can :)

@danielvegamyhre danielvegamyhre added the tide/merge-method-merge Denotes a PR that should use a standard merge by tide when it merges. label Jun 1, 2024
@ahg-g
Copy link
Contributor

ahg-g commented Jun 2, 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 Jun 2, 2024
@k8s-ci-robot k8s-ci-robot merged commit b58bd78 into kubernetes-sigs:main Jun 2, 2024
12 checks passed
@alculquicondor
Copy link

Thanks! Please cherry-pick to 0.5

k8s-ci-robot added a commit that referenced this pull request Jun 3, 2024
…-#590-upstream-release-0.5

Automated cherry pick of #590: propagate job pod template updates to suspended jobs when
@danielvegamyhre danielvegamyhre mentioned this pull request Aug 19, 2024
20 tasks
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/L Denotes a PR that changes 100-499 lines, ignoring generated files. tide/merge-method-merge Denotes a PR that should use a standard merge by tide when it merges.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Propagate JobTemplate updates made to suspended JobSets to child Jobs
4 participants