-
Notifications
You must be signed in to change notification settings - Fork 228
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
Filter resource prefixes #2267
Filter resource prefixes #2267
Conversation
Hi @pajakd. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
/release-note-edit
|
/ok-to-test |
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.
Let's add
test/e2e/singlecluster/pod_test.go
Outdated
@@ -96,6 +96,10 @@ var _ = ginkgo.Describe("Pod groups", func() { | |||
Image("gcr.io/k8s-staging-perf-tests/sleep:v0.1.0", []string{"1ms"}). | |||
Queue(lq.Name). | |||
Request(corev1.ResourceCPU, "1"). | |||
// Adding a resource that is *not* in Cluster Queue but is marked | |||
// as excluded in the configuration. Testing that it passes without error. | |||
Request("networking.networks/vpc1", "1"). |
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.
This Pod will pass Kueue admission, but it will not run, because this is an E2E test and kube-scheduler wouldn't schedule it.
Better test at integration level.
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.
Oh, thank you for this -- I could not figure out why e2e was failing.
Added integration testing.
LGTM overall. |
Co-authored-by: Aldo Culquicondor <1299064+alculquicondor@users.noreply.github.com>
Co-authored-by: Aldo Culquicondor <1299064+alculquicondor@users.noreply.github.com>
Co-authored-by: Aldo Culquicondor <1299064+alculquicondor@users.noreply.github.com>
Co-authored-by: Aldo Culquicondor <1299064+alculquicondor@users.noreply.github.com>
Co-authored-by: Aldo Culquicondor <1299064+alculquicondor@users.noreply.github.com>
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, just nits
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 would suggest to squash the commits.
/lgtm
/assign @tenzen-y @alculquicondor
LGTM label has been added. Git tree hash: 0641aa3b9a3035ab2133649fd38c1ab11837996e
|
pkg/workload/workload.go
Outdated
@@ -626,5 +665,6 @@ func AdmissionChecksForWorkload(log logr.Logger, wl *kueue.Workload, admissionCh | |||
} | |||
} | |||
} | |||
|
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.
non-blocking nit: revert
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.
OK. Done
/lgtm |
LGTM label has been added. Git tree hash: ae69eba684dc0eec92c3f550ac5bdf40b3fa7c3f
|
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alculquicondor, pajakd 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 |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Adds a functionality to Kueue to ignore resources with certain (configurable) prefixes.
Which issue(s) this PR fixes:
Fixes #2266
Special notes for your reviewer:
Does this PR introduce a user-facing change?