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

MultiKueue JobSet managedBy #1870

Merged
merged 5 commits into from Apr 16, 2024

Conversation

trasc
Copy link
Contributor

@trasc trasc commented Mar 20, 2024

What type of PR is this?

/kind feature

What this PR does / why we need it:

Add support for JobSet spec.managedBy.

Which issue(s) this PR fixes:

Fixes #693

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Add MultiKueue support for  JobSet  `spec.managedBy` field.

@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Mar 20, 2024
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 20, 2024
Copy link

netlify bot commented Mar 20, 2024

Deploy Preview for kubernetes-sigs-kueue ready!

Name Link
🔨 Latest commit 901d8ea
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-kueue/deploys/661e7b25e49ce40008f6a612
😎 Deploy Preview https://deploy-preview-1870--kubernetes-sigs-kueue.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@trasc trasc force-pushed the multikueue-jobset-managed-by branch from 48e809d to 2b25e98 Compare March 20, 2024 14:37
@mimowo
Copy link
Contributor

mimowo commented Mar 25, 2024

/hold
Let's wait for the JobSet 0.5 release which migrates to field, which is tentatively planned for April per #1870 (comment)

@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Mar 25, 2024
@trasc trasc force-pushed the multikueue-jobset-managed-by branch from 2b25e98 to df80ffb Compare March 28, 2024 15:42
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 29, 2024
@trasc trasc force-pushed the multikueue-jobset-managed-by branch 2 times, most recently from f8752a6 to 21142b9 Compare April 16, 2024 07:52
@trasc
Copy link
Contributor Author

trasc commented Apr 16, 2024

/unhold

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 16, 2024
@trasc trasc force-pushed the multikueue-jobset-managed-by branch from 21142b9 to 5c69f9f Compare April 16, 2024 08:04
Copy link
Contributor

@mimowo mimowo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost lgtm, just nits.

pkg/controller/admissionchecks/multikueue/workload.go Outdated Show resolved Hide resolved
site/content/en/docs/tasks/run/jobsets.md Outdated Show resolved Hide resolved
site/content/en/docs/concepts/multikueue.md Outdated Show resolved Hide resolved
@mimowo
Copy link
Contributor

mimowo commented Apr 16, 2024

/lgtm
/assign @alculquicondor @tenzen-y
Please also adjust the PR description and title to refer to the field.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 16, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 5fc7622b2e3abc96d956242b83803c311396cc22

@trasc trasc changed the title MultiKueue JobSet managed-by MultiKueue JobSet managedBy Apr 16, 2024
@alculquicondor
Copy link
Contributor

/unassign

@mimowo can you handle this one?

@mimowo
Copy link
Contributor

mimowo commented Apr 16, 2024

@mimowo can you handle this one?

I think extra approve will be needed for docs, but I can approve the rest.
/approve

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 16, 2024
Copy link
Contributor

@alculquicondor alculquicondor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 16, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: f7fb744a7e9a8aee5175e456fa919aba2a27958d

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alculquicondor, mimowo, trasc

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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 16, 2024
@k8s-ci-robot k8s-ci-robot merged commit 206b59f into kubernetes-sigs:main Apr 16, 2024
14 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v0.7 milestone Apr 16, 2024
Copy link
Member

@tenzen-y tenzen-y left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Totally, lgtm
I left a comment for a nit.
Thank you!

@@ -101,3 +101,7 @@ func (b *batchJobAdapter) DeleteRemoteObject(ctx context.Context, remoteClient c
func (b *batchJobAdapter) KeepAdmissionCheckPending() bool {
return true
}

func (b *batchJobAdapter) IsJobManagedByKueue(_ context.Context, _ client.Client, _ types.NamespacedName) (bool, string, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
func (b *batchJobAdapter) IsJobManagedByKueue(_ context.Context, _ client.Client, _ types.NamespacedName) (bool, string, error) {
func (b *batchJobAdapter) IsJobManagedByKueue(context.Context, client.Client, types.NamespacedName) (bool, string, error) {

This is a minor nit.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should have the managedBy field available for Jobs soon and we'll need to properly implement the method.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense.

@trasc trasc deleted the multikueue-jobset-managed-by branch April 17, 2024 10:02
vsoch pushed a commit to researchapps/kueue that referenced this pull request Apr 18, 2024
* [multikueue] Reject Workload with unsupported owner type.

* [multikueue/jobset] Use `mabagedBy` field support.

* Review Remarks.

* Review Remarks

* Review remarks
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. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MVP Multi-cluster support
7 participants