Commit Graph

3704 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
0b789d7cca Merge pull request #129427 from macsko/improve_map_in_interpodaffinity_prefilter
Improve topologyToMatchedTermCount map in InterPodAffinity PreFilter
2025-01-10 10:40:33 -08:00
Maciej Skoczeń
2d82687114 Improve topologyToMatchedTermCount map in InterPodAffinity PreFilter 2025-01-10 10:55:49 +00:00
Paco Xu
2653caa248 fix dra test lint 2025-01-09 10:42:40 +08:00
googs1025
77eae7c34f feature(scheduler): remove dra plugin resourceslice QueueingHintFn 2025-01-08 16:24:28 +08:00
Kubernetes Prow Robot
1c2b2cce10 Merge pull request #129119 from macsko/fix_podtopologyspread_for_multiple_constraints_with_the_same_key
Fix PodTopologySpread matching pods counts for constraints with the same topologyKey
2025-01-01 11:04:14 +01:00
Maciej Skoczeń
c3a54926a4 Fix PodTopologySpread matching pods counts for constraints with the same topologyKey 2024-12-30 09:35:24 +00:00
Kubernetes Prow Robot
e8615e2712 Merge pull request #129054 from pohly/remove-import-name
remove import doc comments
2024-12-12 09:58:35 +01:00
Kubernetes Prow Robot
078664b424 Merge pull request #129023 from zhifei92/cleanup-actiontype
scheduler:  Rename UpdatePodTolerations for code style consistency
2024-12-12 05:28:52 +00:00
Kubernetes Prow Robot
9f2f7a084c Merge pull request #128906 from sanposhiho/pod-scheduling-duration-remove
cleanup: remove `pod_scheduling_duration_seconds`
2024-12-12 04:13:23 +00:00
Kubernetes Prow Robot
6c108faaf6 Merge pull request #128810 from googs1025/cleanup/scheduler/metrics
chore: remove repeated scheduler prefix metrics for CacheSizeMetrics
2024-12-12 04:12:32 +00:00
Patrick Ohly
8a908e0c0b remove import doc comments
The "// import <path>" comment has been superseded by Go modules.
We don't have to remove them, but doing so has some advantages:

- They are used inconsistently, which is confusing.
- We can then also remove the (currently broken) hack/update-vanity-imports.sh.
- Last but not least, it would be a first step towards avoiding the k8s.io domain.

This commit was generated with
   sed -i -e 's;^package \(.*\) // import.*;package \1;' $(git grep -l '^package.*// import' | grep -v 'vendor/')

Everything was included, except for
   package labels // import k8s.io/kubernetes/pkg/util/labels
because that package is marked as "read-only".
2024-12-02 16:59:34 +01:00
zhifei92
27608fa25d refactor(scheduler): Rename UpdatePodTolerations for code style consistency. 2024-11-29 13:13:09 +08:00
googs1025
65b243fcd6 chore: remove repeated scheduler prefix metrics for CacheSizeMetrics 2024-11-26 14:26:07 +08:00
Kensei Nakada
bfea4890c5 cleanup: remove pod_scheduling_duration_seconds 2024-11-21 17:54:31 +09:00
googs1025
c725e18e07 feature(scheduler): more fine-grained QHints for interpodaffinity plugin 2024-11-14 20:00:38 +08:00
Kubernetes Prow Robot
8fe10dc378 Merge pull request #128691 from sanposhiho/flaky-candidate
fix: flaky TestPrepareCandidate
2024-11-09 19:38:44 +00:00
Kensei Nakada
00f7b95b7b fix: flaky TestPrepareCandidate 2024-11-09 12:07:16 +09:00
ndixita
6db40446de Scheduler changes:
1. Use pod-level resource when feature is enabled and resources are set at pod-level
2. Edge case handling: When a pod defines only CPU or memory limits at pod-level (but not both), and container-level requests/limits are unset, the pod-level requests stay empty for the resource without a pod-limit. The container's request for that resource is then set to the default request value from schedutil.
2024-11-08 03:00:54 +00:00
Kubernetes Prow Robot
fb033826a8 Merge pull request #128170 from sanposhiho/async-preemption
feature(KEP-4832): asynchronous preemption
2024-11-07 19:44:54 +00:00
Kubernetes Prow Robot
e5f5975f96 Merge pull request #128472 from sanposhiho/qhint-beta
feat: graduate SchedulerQueueingHints to beta
2024-11-07 16:10:36 +00:00
Kensei Nakada
b96eee847e feat: graduate SchedulerQueueingHints to beta 2024-11-07 21:45:18 +09:00
utam0k
e828a4b40a Add integration test for NodeVolumeLimits in requeueing scenarios
Signed-off-by: utam0k <k0ma@utam0k.jp>
2024-11-07 19:51:50 +09:00
Yusuke Sakurai
992f1d9a08 add integration test for volumebinding for queueinghint 2024-11-07 14:10:26 +09:00
Kensei Nakada
105d489aa4 chore: wording 2024-11-07 14:09:35 +09:00
Kensei Nakada
e601eb7c5a fix: run activate() only when fail 2024-11-07 14:09:35 +09:00
Kensei Nakada
9b5928f764 fix: refactor TestPrepareCandidate 2024-11-07 14:09:35 +09:00
Kensei Nakada
ce377efa00 fix: improve logs\ 2024-11-07 14:09:35 +09:00
Kensei Nakada
49135d6173 fix: take QHint disable scenario into consideration 2024-11-07 14:09:35 +09:00
Kensei Nakada
d4d91d4ace fix: use set methods 2024-11-07 14:09:35 +09:00
Kensei Nakada
623b2a20d2 fix: handle Activate event properly 2024-11-07 14:09:35 +09:00
Kensei Nakada
102d79ec93 add: add a test case for Activate 2024-11-07 14:09:35 +09:00
Kensei Nakada
a95b8b5085 fix: use Activate always 2024-11-07 14:09:35 +09:00
Kensei Nakada
02459ca59c fix: register the event in in-flight as necessary at Activate 2024-11-07 14:09:35 +09:00
Kensei Nakada
8be51d3f32 chore: fix based on reviews 2024-11-07 14:09:35 +09:00
Kensei Nakada
677792663f fix: register Pod/Delete event at the preemption plugin 2024-11-07 14:09:35 +09:00
Kensei Nakada
3124c5bd56 fix: avoid errors from the race condition detector 2024-11-07 14:09:35 +09:00
Kensei Nakada
c322294883 implement PodActivator to activate when preemption fails 2024-11-07 14:09:35 +09:00
Kensei Nakada
8f2243fe74 chore: tiny wording on the comment 2024-11-07 14:09:35 +09:00
Kensei Nakada
1e2511031e feat: support metrics 2024-11-07 14:09:35 +09:00
Kensei Nakada
fe3119fa69 make sure DefaultPreemption implements PreEnqueuePlugin 2024-11-07 14:09:35 +09:00
Kensei Nakada
98bdbdcf18 fix: refactor TestPrepareCandidate to test async feature too 2024-11-07 14:09:34 +09:00
Kensei Nakada
02eabc7d8e fix: modify newly added preemption test 2024-11-07 14:09:34 +09:00
Kensei Nakada
68aeced18e fix: fixed some tests 2024-11-07 14:09:34 +09:00
Kensei Nakada
e40f3f40bd fix: address reviews 2024-11-07 14:09:34 +09:00
Kensei Nakada
69a8d0ec0b feature(KEP-4832): asynchronous preemption 2024-11-07 14:09:34 +09:00
Patrick Ohly
33ea278c51 DRA: use v1beta1 API
No code is left which depends on the v1alpha3, except of course the code
implementing that version.
2024-11-06 13:03:19 +01:00
Kubernetes Prow Robot
0fad78930f Merge pull request #127904 from towca/jtuznik/dra-autoscaling
DRA: allow Cluster Autoscaler to integrate with DRA scheduler plugin
2024-11-06 10:01:29 +00:00
Kubernetes Prow Robot
f81a68f488 Merge pull request #128377 from tallclair/allocated-status-2
[FG:InPlacePodVerticalScaling] Implement AllocatedResources status changes for Beta
2024-11-05 23:21:49 +00:00
Kuba Tużnik
3d22a7f414 scheduler/autoscaler_contract: expand the Cluster Autoscaler contract
SharedDRAManager is added to the contract, as well as RunReservePluginsReserve
that will be run by Cluster Autoscaler to obtain claim allocations.
2024-11-05 14:11:08 +01:00
Kuba Tużnik
8d489425aa scheduler/dynamicresources: extract obtaining and tracking in-memory modifications of DRA objects
All logic related to obtaining DRA objects and tracking modifications
to ResourceClaims in-memory is extracted to DefaultDRAManager, which
implements framework.SharedDRAManager.

This is intended to be a no-op in terms of the DRA plugin behavior.
2024-11-05 14:11:04 +01:00