-
Notifications
You must be signed in to change notification settings - Fork 262
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
Conversation
Skipping CI for Draft Pull Request. |
/assign |
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
1a49194
to
2ebfdea
Compare
fb81c75
to
00ae860
Compare
00ae860
to
a8486e9
Compare
a8486e9
to
13946f5
Compare
/cc @alculquicondor |
/release-note-edit
|
48f494f
to
e0080bf
Compare
* Set up deployment integration in main.go
* Move noop to jobframework
* Noop renamings * Remove deployment integration options
98d8de5
to
d37fe2c
Compare
test/integration/controller/jobs/deployment/deployment_webhook_test.go
Outdated
Show resolved
Hide resolved
test/integration/controller/jobs/deployment/deployment_webhook_test.go
Outdated
Show resolved
Hide resolved
test/integration/controller/jobs/deployment/deployment_webhook_test.go
Outdated
Show resolved
Hide resolved
test/integration/controller/jobs/deployment/deployment_webhook_test.go
Outdated
Show resolved
Hide resolved
test/integration/controller/jobs/deployment/deployment_webhook_test.go
Outdated
Show resolved
Hide resolved
* Remove _ * Rename webhook endpoints * Deployment integration test
d37fe2c
to
33217ec
Compare
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.
Basically, lgtm
* skip cq label setting if not set
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.
Mostly lgtm.
Just some nits.
@alculquicondor Do you have any other comments?
test/integration/controller/jobs/deployment/deployment_webhook_test.go
Outdated
Show resolved
Hide resolved
test/integration/controller/jobs/deployment/deployment_webhook_test.go
Outdated
Show resolved
Hide resolved
test/integration/controller/jobs/deployment/deployment_webhook_test.go
Outdated
Show resolved
Hide resolved
test/integration/controller/jobs/deployment/deployment_webhook_test.go
Outdated
Show resolved
Hide resolved
jobframework.WithKubeServerVersion(serverVersionFetcher), | ||
jobframework.WithIntegrationOptions( | ||
corev1.SchemeGroupVersion.WithKind("Pod").String(), | ||
&configapi.PodIntegrationOptions{}, |
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.
&configapi.PodIntegrationOptions{}, |
Is there any reason why we need to set empty PodIntegrationOptions?
If not, let's remove them.
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.
It's mandatory
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.
Can you just not call WithIntegrationOptions
?
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.
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
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.
PR was opened: #2945
* remove error from eventually
LGTM label has been added. Git tree hash: bcb04fc0aa33e796adbb2e95e1b2fbaa55ac387a
|
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.
/lgtm
/approve
/hold cancel
[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:
Approvers can indicate their approval by writing |
* [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
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?