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

[jobframework] Deployment integration #2813

Merged
merged 7 commits into from
Aug 30, 2024

Conversation

vladikkuzn
Copy link
Contributor

@vladikkuzn vladikkuzn commented Aug 11, 2024

What type of PR is this?

/kind feature

What this PR does / why we need it:

Adds deployment integration to job framework

Which issue(s) this PR fixes:

Fixes #2717

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Add integration for Deployment, where each Pod is treated as a separate Workload.

@k8s-ci-robot
Copy link
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/feature Categorizes issue or PR as related to a new feature. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Aug 11, 2024
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 11, 2024
@vladikkuzn
Copy link
Contributor Author

/assign

Copy link

netlify bot commented Aug 11, 2024

Deploy Preview for kubernetes-sigs-kueue canceled.

Name Link
🔨 Latest commit 62d3ae3
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-kueue/deploys/66d1d2e3af3c7500082a6ee4

pkg/controller/jobs/noop/noop_controller.go Outdated Show resolved Hide resolved
pkg/controller/jobs/noop/noop_controller.go Outdated Show resolved Hide resolved
pkg/controller/jobs/noop/noop_controller.go Outdated Show resolved Hide resolved
pkg/controller/jobs/deployment/deployment_controller.go Outdated Show resolved Hide resolved
pkg/controller/jobs/deployment/deployment_controller.go Outdated Show resolved Hide resolved
pkg/controller/jobs/noop/noop_controller.go Outdated Show resolved Hide resolved
pkg/controller/jobs/deployment/deployment_controller.go Outdated Show resolved Hide resolved
@vladikkuzn vladikkuzn force-pushed the serving-deployment branch 2 times, most recently from fb81c75 to 00ae860 Compare August 14, 2024 09:35
@vladikkuzn vladikkuzn marked this pull request as ready for review August 14, 2024 09:35
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 14, 2024
@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 14, 2024
@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Aug 14, 2024
@vladikkuzn
Copy link
Contributor Author

/cc @alculquicondor

@alculquicondor
Copy link
Contributor

/release-note-edit

Add integration for Deployment, where each Pod is treated as a separate Workload.

apis/config/v1beta1/configuration_types.go Outdated Show resolved Hide resolved
cmd/kueue/main.go Outdated Show resolved Hide resolved
pkg/controller/jobframework/setup.go Outdated Show resolved Hide resolved
cmd/kueue/main.go Outdated Show resolved Hide resolved
pkg/controller/jobs/deployment/deployment_webhook.go Outdated Show resolved Hide resolved
pkg/controller/jobs/noop/noop_controller.go Outdated Show resolved Hide resolved
pkg/controller/jobs/noop/noop_webhook.go Outdated Show resolved Hide resolved
* Set up deployment integration in main.go
* Move noop to jobframework
* Noop renamings
* Remove deployment integration options
@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Aug 28, 2024
* Remove _
* Rename webhook endpoints
* Deployment integration test
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.

Basically, lgtm

pkg/controller/jobs/deployment/deployment_webhook.go Outdated Show resolved Hide resolved
* skip cq label setting if not set
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.

Mostly lgtm.
Just some nits.

@alculquicondor Do you have any other comments?

jobframework.WithKubeServerVersion(serverVersionFetcher),
jobframework.WithIntegrationOptions(
corev1.SchemeGroupVersion.WithKind("Pod").String(),
&configapi.PodIntegrationOptions{},
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
&configapi.PodIntegrationOptions{},

Is there any reason why we need to set empty PodIntegrationOptions?
If not, let's remove them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's mandatory

Copy link
Contributor

Choose a reason for hiding this comment

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

Can you just not call WithIntegrationOptions?

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess you can't because of this

return configapi.PodIntegrationOptions{}, errPodOptsNotFound

I guess we should change that function to work with an empty struct, but we can leave that for a follow up.

/lgtm
/approve

Copy link
Member

Choose a reason for hiding this comment

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

PR was opened: #2945

* remove error from eventually
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 30, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: bcb04fc0aa33e796adbb2e95e1b2fbaa55ac387a

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 30, 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.

/lgtm
/approve

/hold cancel

@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 Aug 30, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alculquicondor, tenzen-y, vladikkuzn

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:
  • OWNERS [alculquicondor,tenzen-y]

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 merged commit 54f4662 into kubernetes-sigs:main Aug 30, 2024
16 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v0.9 milestone Aug 30, 2024
@vladikkuzn vladikkuzn deleted the serving-deployment branch August 30, 2024 21:52
kannon92 pushed a commit to openshift-kannon92/kubernetes-sigs-kueue that referenced this pull request Nov 19, 2024
* [jobframework] Deployment integration

* [jobframework] Deployment integration

* Set up deployment integration in main.go

* [jobframework] Deployment integration

* Move noop to jobframework

* [jobframework] Deployment integration

* Noop renamings
* Remove deployment integration options

* [jobframework] Deployment integration

* Remove _
* Rename webhook endpoints
* Deployment integration test

* [jobframework] Deployment integration

* skip cq label setting if not set

* [jobframework] Deployment integration

* remove error from eventually
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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MVP support / extension of support for serving workloads
6 participants