-
Notifications
You must be signed in to change notification settings - Fork 451
Add testing exclude resource prefixes #7492
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
base: main
Are you sure you want to change the base?
Add testing exclude resource prefixes #7492
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: kannon92 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
test/integration/singlecluster/scheduler/excluderesources/scheduler_test.go
Outdated
Show resolved
Hide resolved
test/integration/singlecluster/scheduler/excluderesources/scheduler_test.go
Outdated
Show resolved
Hide resolved
test/integration/singlecluster/scheduler/excluderesources/scheduler_test.go
Outdated
Show resolved
Hide resolved
test/integration/singlecluster/scheduler/excluderesources/scheduler_test.go
Outdated
Show resolved
Hide resolved
test/integration/singlecluster/scheduler/excluderesources/scheduler_test.go
Outdated
Show resolved
Hide resolved
test/integration/singlecluster/scheduler/excluderesources/scheduler_test.go
Outdated
Show resolved
Hide resolved
test/integration/singlecluster/scheduler/excluderesources/scheduler_test.go
Outdated
Show resolved
Hide resolved
test/integration/singlecluster/scheduler/excluderesources/scheduler_test.go
Outdated
Show resolved
Hide resolved
test/integration/singlecluster/scheduler/excluderesources/scheduler_test.go
Outdated
Show resolved
Hide resolved
test/integration/singlecluster/scheduler/excluderesources/scheduler_test.go
Outdated
Show resolved
Hide resolved
acc2be2 to
481c202
Compare
…tion This adds comprehensive integration tests for the excludeResourcePrefixes feature in a dedicated test directory following the pattern of other scheduler tests (fairsharing, podsready). The tests verify: - Basic resource exclusion from quota calculations - Multiple excluded resource prefixes - Quota enforcement for non-excluded resources - Exact prefix matching (not substring matching) All tests create Workload objects directly and use the scheduler test utilities for robust assertions.
481c202 to
c5318b2
Compare
|
@kannon92: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Add test cases for scheduler for excludeResourcePrefixes.
As I was working on #5800, I notice we don't really have a good test coverage of this excludeResourcePrefixes in the configuration.
There is one test in pod_controller in this but I think it make sense to have this for the scheduler.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Assisted by Claude Code
Does this PR introduce a user-facing change?