814 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
9e2a0c7453 Merge pull request #133293 from utam0k/kep-5278--fg-alpha
Demote KEP-5278 feature gates ClearingNominatedNodeNameAfterBinding and NominatedNodeNameForExpectation to Alpha
2025-07-31 02:37:16 -07:00
Maciej Skoczeń
c7db6362fe Move NominatedNodeName preemption-related integration tests to a new package 2025-07-30 10:47:38 +00:00
utam0k
988c9b03fd Demote KEP-5278 feature gates ClearingNominatedNodeNameAfterBinding and NominatedNodeNameForExpectation to Alpha
Signed-off-by: utam0k <k0ma@utam0k.jp>
2025-07-30 15:48:26 +09:00
Kubernetes Prow Robot
1b273b385e Merge pull request #130653 from yliaog/master
kubelet and scheduler for extended resource backed by DRA
2025-07-29 13:04:27 -07:00
yliao
23d6f73e72 extended resource backed by DRA: test 2025-07-29 18:55:28 +00:00
Kubernetes Prow Robot
74f7a44966 Merge pull request #133276 from macsko/stop_clearing_nnn_in_all_cases
KEP-5278 Stop clearing NominatedNodeName in all cases
2025-07-29 11:24:40 -07:00
Kubernetes Prow Robot
fd3c879a5b Merge pull request #132443 from utam0k/clearn-nnn-bind-api
Clear pod.Status.NominatedNodeName when pod is bound
2025-07-29 10:12:26 -07:00
utam0k
60fa65db88 Clear pod.Status.NominatedNodeName when pod is bound
Signed-off-by: utam0k <k0ma@utam0k.jp>
2025-07-29 23:48:11 +09:00
Maciej Skoczeń
aea0a3cca2 Run all relevant test cases with the feature gate enabled and disabled 2025-07-29 12:21:03 +00:00
utam0k
856e7d2383 scheduler: Stop clearing NominatedNodeName on all cases
Signed-off-by: utam0k <k0ma@utam0k.jp>
2025-07-29 12:21:03 +00:00
Kensei Nakada
ac9fad6030 feat: trigger PreFilterPreBind in the binding cycle 2025-07-29 19:01:02 +09:00
Kensei Nakada
f3466f8adc fix: flake integration test 2025-07-28 23:12:58 +09:00
Maciej Skoczeń
17d733e243 KEP-5229: Send API calls through dispatcher and cache 2025-07-25 15:35:36 +00:00
Ania Borowiec
aecd37e6fb Moving Scheduler interfaces to staging: Move PodInfo and NodeInfo interfaces (together with related types) to staging repo, leaving internal implementation in kubernetes/kubernetes/pkg/scheduler 2025-07-24 12:10:58 +00:00
Kubernetes Prow Robot
ab685237f0 Merge pull request #132391 from sanposhiho/pre-bind-pre-flight
feat: add PreBindPreFlight and implement in in-tree plugins
2025-07-15 04:06:23 -07:00
Maciej Skoczeń
9df4c35a60 Disable SchedulerAsyncPreemption feature correctly in integration tests 2025-07-11 12:28:50 +00:00
Kensei Nakada
ebae419337 feat: add PreBindPreFlight and implement in in-tree plugins 2025-07-05 17:14:21 -07:00
Ania Borowiec
ee8c265d35 Move Code and Status from pkg/scheduler/framework to k8s.io/kube-scheduler/framework 2025-06-30 10:06:22 +00:00
Ania Borowiec
00d3750503 Move ClusterEvent type to staging repo, leaving some functions (that contain logic internal to scheduler) in kubernetes/kubernetes (#132190)
* Move ClusterEvent type to staging repo, leaving some functions (that contain logic internal to scheduler) in kubernetes/kubernetes

apply review comment and fix linter warning

* update-vendor.sh

* update doc comments

* run update-vendor.sh
2025-06-26 08:06:29 -07:00
Kubernetes Prow Robot
0017db180b Merge pull request #130052 from utam0k/qhint-enable-plugins
sched: Apply EnablePlugins to CoreResourceEnqueueTestCases
2025-06-23 17:00:37 -07:00
Avritt Rohwer
087554448c Make nodeports scheduling plugin sidecar initContainer aware 2025-06-06 02:26:05 +00:00
utam0k
7ccb9657f7 sched: Apply EnablePlugins to CoreResourceEnqueueTestCases
Signed-off-by: utam0k <k0ma@utam0k.jp>
2025-06-02 21:19:38 +09:00
Kubernetes Prow Robot
e0859f91b7 Merge pull request #131887 from ania-borowiec/extract_cyclestate_interface
Moving Scheduler interfaces to staging: split CycleState into interface and implementation, move interface to staging repo
2025-05-30 04:00:18 -07:00
Ania Borowiec
d75af825fb Extract interface CycleState and move is to staging repo. CycleState implementation remains in k/k/pkg/scheduler/framework 2025-05-29 16:18:36 +00:00
Kensei Nakada
f694c58c6c feat: graduate QueueingHint to GA 2025-05-26 21:23:46 +02:00
googs1025
01820ff7c2 chore(scheduler): add filter integration tests for missing part plugins: NodeAffinity plugin
Signed-off-by: googs1025 <googs1025@gmail.com>
2025-05-23 18:02:32 +08:00
Kubernetes Prow Robot
82db38a23c Merge pull request #128748 from sanposhiho/attempt-incre
feat: introduce pInfo.UnschedulableCount to make the backoff calculation more appropriate
2025-05-19 01:21:15 -07:00
Kensei Nakada
adc4916dfe feat: introduce pInfo.UnschedulableCount to make the backoff calculation more appropriate 2025-05-17 12:39:58 +02:00
Kubernetes Prow Robot
92f6854b3d Merge pull request #131763 from macsko/add_sig_scheduling_label_to_perf_and_staging
Add sig/scheduling label to scheduler_perf and staging repo OWNERS
2025-05-15 01:05:20 -07:00
Kubernetes Prow Robot
0113538e59 Merge pull request #127180 from sanposhiho/general-gate
feat: introduce pInfo.GatingPlugin to filter out events more generally
2025-05-14 05:13:18 -07:00
Maciej Skoczeń
5121115711 Add sig/scheduling label to scheduler integration tests and staging repo OWNERS 2025-05-14 11:39:04 +00:00
saza-ku
e5f7fc25e7 TestNodeAffinityScoring: wait all nodes 2025-05-13 16:18:19 +09:00
saza-ku
3911b677bd test: wait for nodes to be in scheduler's cache 2025-05-10 18:17:38 +09:00
Kensei Nakada
47d296d62d feat: introduce pInfo.GatingPlugin to filter out events more generally 2025-05-07 13:54:47 +02:00
Kubernetes Prow Robot
2867fed217 Merge pull request #131288 from carlory/deflake-TestEndpointHandlers
deflake intergation test: TestEndpointHandlers
2025-04-23 18:20:44 -07:00
Kubernetes Prow Robot
75c640bc02 Merge pull request #131278 from haosdent/haosdent/remove-redundant-call
scheduler: remove duplicate nominatedNodeName clearing in preemption
2025-04-23 18:20:30 -07:00
Kubernetes Prow Robot
8a6b916765 Merge pull request #130720 from saintube/scheduler-expose-nodeinfo-in-prefilter
Expose NodeInfo to PreFilter plugins
2025-04-23 13:31:29 -07:00
Haosdent Huang
ac3274521b scheduler: remove duplicate nominatedNodeName clearing in preemption
When preemption finds no candidates, it currently makes an explicit API
call to clear the pod's nominatedNodeName in findCandidates(). However,
this is redundant because:

1. When no candidates are found, Preempt() returns a PostFilterResult with
   an empty nominatedNodeName via NewPostFilterResultWithNominatedNode("")
2. This empty nominatedNodeName is propagated through the scheduling
   cycle to handleSchedulingFailure()
3. handleSchedulingFailure() then properly clears the nominatedNodeName
   through updatePod()

Remove the explicit ClearNominatedNodeName call in findCandidates() to
reduce unnecessary API calls while maintaining the same behavior.

This change improves performance by eliminating a duplicate API call
without changing the functional behavior of preemption.
2025-04-16 17:24:08 +08:00
carlory
1654aa619c deflake intergation test: TestEndpointHandlers
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-04-15 15:33:40 +08:00
saintube
8dc6806d26 Expose NodeInfo to PreFilter plugins and Framework
Co-authored-by: Zhan Sheng <49895476+AxeZhan@users.noreply.github.com>
Co-authored-by: shenxin <rougang.hrg@alibaba-inc.com>
Signed-off-by: saintube <saintube@foxmail.com>
2025-03-21 14:55:25 +08:00
Kubernetes Prow Robot
322083c948 Merge pull request #130772 from macsko/pop_from_backoffq_when_activeq_is_empty_new
Pop from backoffQ when activeQ is empty
2025-03-20 13:08:47 -07:00
Kubernetes Prow Robot
2dafb0eefe Merge pull request #130375 from googs1025/feature/integration_filter_NodeResources
chore(scheduler): add filter integration tests for missing part plugins: NodeResources plugin
2025-03-20 09:22:31 -07:00
Maciej Skoczeń
c7919f5e22 Pop from the backoffQ when the activeQ is empty 2025-03-20 16:07:13 +00:00
Kubernetes Prow Robot
41dd679fee Merge pull request #130920 from kerthcet/feat/promote-to-ga
KEP-3094: Promote NodeInclusionPolicyInPodTopologySpread to Stable
2025-03-20 07:52:32 -07:00
googs1025
ca42addbdf chore(scheduler): add filter integration tests for missing part plugins: NodeResources plugin 2025-03-20 19:47:52 +08:00
Kubernetes Prow Robot
65d9066665 Merge pull request #130680 from macsko/update_backoffq_less_function_to_order_by_priority_in_windows
Update backoffQ's less function to order pods by priority in windows
2025-03-20 01:36:31 -07:00
kerthcet
1a34095f75 KEP-3094 Promote NodeInclusionPolicyInPodTopologySpread to Stable
Signed-off-by: kerthcet <kerthcet@gmail.com>
2025-03-20 14:54:42 +08:00
Kensei Nakada
10c6a4258f feat: graduate MatchLabelKeysInPodAffinity to GA 2025-03-19 23:06:04 +09:00
Maciej Skoczeń
e367dca6c5 Change backoffQ less function to order pods by priority in windows 2025-03-19 13:04:15 +00:00
Maciej Skoczeń
f6a35c55f2 Wait for node to appear in cache in TestUpdateNominatedNodeName integration test 2025-03-14 17:06:30 +00:00