Commit Graph

3620 Commits

Author SHA1 Message Date
Kensei Nakada
089457e908 fix: check correctly if the event is scale down
Signed-off-by: Kensei Nakada <handbomusic@gmail.com>
2024-10-22 10:01:20 +09:00
Kubernetes Prow Robot
e39571591d Merge pull request #127478 from googs1025/scheduler/fine-grained
feature(scheduler): more fine-grained QHints for podtopologyspread plugin
2024-10-20 13:29:03 +01:00
googs1025
1edbd0b54f feature(scheduler): more fine-grained QHints for podtopologyspread plugin 2024-10-19 23:45:13 +08:00
Kensei Nakada
83f9e4b6df cleanup: remove event list 2024-10-18 11:10:10 +10:00
Patrick Ohly
f84eb5ecf8 DRA: remove "classic DRA"
This removes the DRAControlPlaneController feature gate, the fields controlled
by it (claim.spec.controller, claim.status.deallocationRequested,
claim.status.allocation.controller, class.spec.suitableNodes), the
PodSchedulingContext type, and all code related to the feature.

The feature gets removed because there is no path towards beta and GA and DRA
with "structured parameters" should be able to replace it.
2024-10-16 23:09:50 +02:00
Kubernetes Prow Robot
95612e7b3b Merge pull request #127878 from AxeZhan/sidecar
[scheduler] calculate pod requests resources with sidecar containers
2024-10-10 17:54:19 +01:00
AxeZhan
8b15843d00 remove unused GetNonzeroRequests function 2024-10-10 23:52:25 +08:00
AxeZhan
b1f07bb36c add tests for scheduler 2024-10-10 15:53:19 +08:00
AxeZhan
6fbc3a618f using NonMissingContainerRequests 2024-10-10 15:53:07 +08:00
Kubernetes Prow Robot
c9ff60dc68 Merge pull request #127607 from sanposhiho/metric-queuetest
chore: ensure the scheduler handles events before checking the pod position
2024-10-09 12:24:24 +01:00
Kensei Nakada
6624541893 cleanup: remove isUnschedPodUpdateIncluded variable 2024-10-09 18:52:11 +09:00
Kensei Nakada
4f853fceb9 fix: eliminate a possible double-record of UnscheduledPodUpdate event handling latency 2024-10-09 12:52:09 +09:00
kerthcet
693d4fa156 Refactor the sample log
Signed-off-by: kerthcet <kerthcet@gmail.com>
2024-10-08 09:54:05 +08:00
Kensei Nakada
a2b3a4f4dc chore: ensure the scheduler handles events before checking the pod position 2024-10-06 21:06:45 +09:00
Kubernetes Prow Robot
3de975b732 Merge pull request #125171 from YamasouA/ft/queuehint-csidriver
volumebinding: scheduler queueing hints - CSIDriver
2024-10-04 00:26:27 +01:00
Kubernetes Prow Robot
7dd03c1ee5 Merge pull request #127353 from Gekko0114/integration_test_volumezone
Add integration test for VolumeZone in requeueing scenarios
2024-10-03 05:48:26 +01:00
YamasouA
6dbaa5660e fix test 2024-10-02 22:50:39 +09:00
Kubernetes Prow Robot
b42772c3b1 Merge pull request #127798 from sanposhiho/storage-cleanup
cleanup: use a general buildEvtResHandler for StorageClass
2024-10-02 10:07:49 +01:00
Kensei Nakada
d254080217 cleanup: use a general buildEvtResHandler for StorageClass 2024-10-02 17:04:50 +09:00
googs1025
24a28766d4 chore(scheduler dra): improve dra queue hint unit test 2024-10-01 17:22:15 +08:00
Kubernetes Prow Robot
67cdc26214 Merge pull request #127497 from pohly/dra-scheduler-queueing-hints-fix
DRA scheduler: fix queuing hint support
2024-09-30 23:21:48 +01:00
Patrick Ohly
aee77bfc84 DRA scheduler: add special ActionType for ResourceClaim changes
Having a dedicated ActionType which only gets used when the scheduler itself
already detects some change in the list of generated ResourceClaims of a pod
avoids calling the DRA plugin for unrelated Pod changes.
2024-09-27 16:53:58 +02:00
Patrick Ohly
d425353c13 DRA scheduler: reduce verbosity of queuing hints
Other hints also only use V(5) or higher.
2024-09-27 08:15:33 +02:00
Patrick Ohly
4a265feb83 DRA scheduler: fix queuing hint support
d66f8f9 added that "plugins have to implement a QueueingHint for Pod/Update
event if the rejection from them could be resolved by updating unscheduled
Pods itself".

This applies to DRA because the name of a generated ResourceClaim must be
recorded in the pod status before the pod can be scheduled.
2024-09-27 08:15:33 +02:00
Kubernetes Prow Robot
960e3984b0 Merge pull request #127444 from dom4ha/fine-grained-qhints
Fine grain QueueHints for NodeAffinity plugin
2024-09-27 01:42:00 +01:00
dom4ha
c7db4bb450 Fine grain QueueHints for nodeaffinity plugin.
Skip queue on unrelated change that keeps pod schedulable when QueueHints are enabled.

Split add from QHints disabled case

Remove case when QHints are disabled

Remove two GHint alternatives in unit tests

more fine-grained Node QHint for NodeResourceFit plugin

Return early when updated Node causes unmatch

Revert "more fine-grained Node QHint for NodeResourceFit plugin"

This reverts commit dfbceb60e0c1c4e47748c12722d9ed6dba1a8366.

Add integration test for requeue of a pod previously rejected by NodeAffinity plugin when a suitable Node is added

Add integratin test for a Node update operation that does not trigger requeue in NodeAffinity plugin

Remove innacurrate comment

Apply review comments
2024-09-26 10:21:08 +00:00
dom4ha
903b1f7e28 more fine-grained Node QHint for NodeResourceFit plugin 2024-09-26 09:51:36 +00:00
YamasouA
c50884a2f9 tweak 2024-09-25 23:09:06 +09:00
YamasouA
c2ba2ea383 fix unit test 2024-09-25 22:37:05 +09:00
YamasouA
84f45c81ca tweak 2024-09-25 22:37:05 +09:00
YamasouA
b4d9fe3957 delete framework.Add 2024-09-25 22:37:05 +09:00
YamasouA
b98634c2da volumebinding: scheduler queueing hints - CSIDriver
fix if condition

add test

add log

eliminate unnecessary args from log

fix Queue condition

check original pod status

fix return value when can scheduleable

fix tweak

fix testcase
2024-09-25 22:37:05 +09:00
Kubernetes Prow Robot
75214d11d5 Merge pull request #127428 from googs1025/scheduler/plugin
chore(scheduler): refactor import package ordering in scheduler
2024-09-25 11:40:07 +01:00
Kubernetes Prow Robot
94df29b8f2 Merge pull request #127464 from sanposhiho/trigger-nodedelete
fix(eventhandler): trigger Node/Delete event
2024-09-24 02:24:00 +01:00
Kubernetes Prow Robot
211d67a511 Merge pull request #125398 from AxeZhan/pvAffinity
[scheduler] When the hostname and nodename of a node do not match, ensure that pods carrying PVs with nodeAffinity are scheduled correctly.
2024-09-23 21:22:02 +01:00
Kensei Nakada
91aad7c97f fix(eventhandler): trigger Node/Delete event 2024-09-22 17:29:00 +09:00
Kubernetes Prow Robot
a87215915f Merge pull request #127447 from sanposhiho/bug-topologyspread
fix(topologyspread): register UpdatePodTolerations when QHint is enabled
2024-09-22 06:59:58 +01:00
moriya
7b8985dc03 add_test_cases 2024-09-21 01:09:10 +09:00
moriya
75266db65b Add integration test for VolumeZone in requeueing scenarios 2024-09-20 23:05:35 +09:00
Kubernetes Prow Robot
f2700895a4 Merge pull request #127422 from srivastav-abhishek/go-vet-fix
Go vet fixes for gotip
2024-09-20 14:37:58 +01:00
Abhishek Kr Srivastav
95860cff1c Fix Go vet errors for master golang
Co-authored-by: Rajalakshmi-Girish <rajalakshmi.girish1@ibm.com>
Co-authored-by: Abhishek Kr Srivastav <Abhishek.kr.srivastav@ibm.com>
2024-09-20 12:36:38 +05:30
Kubernetes Prow Robot
04bba3c222 Merge pull request #127427 from sanposhiho/bug-nodeunsched
bug(nodeunschedulable): register missing Pod event for NodeUnschedulable plugin
2024-09-19 20:23:37 +01:00
Kensei Nakada
f457777fe8 chore: use DeepEqual from equality.Semantic instead of reflect 2024-09-19 11:22:12 +09:00
googs1025
86aee8cbc7 feature(scheduler): more fine-grained QHints for nodeunschedulable plugin 2024-09-19 10:05:06 +08:00
Kensei Nakada
9c3d4a6fe4 fix(topologyspread): register UpdatePodTolerations when QHint is enabled 2024-09-19 00:36:51 +09:00
googs1025
69831b0043 chore(scheduler): refactor import package ordering 2024-09-18 20:31:03 +08:00
Kensei Nakada
495981974e bug(nodeunschedulable): register missing Pod event for NodeUnschedulable plugin 2024-09-18 17:49:12 +09:00
Kensei Nakada
4a81a85449 chore(noderesourcefit): correct tests and clean up comments 2024-09-17 13:28:27 +09:00
Kensei Nakada
fe3ab649d0 feat: remove node general update event from EventsToRegister when QHint is enabled 2024-09-14 16:15:40 +09:00
Richa Banker
6944af22d1 Initialize scheduler metrics after metrics options are applied 2024-09-13 12:52:32 -07:00