Patrick Ohly
fec5233668
api: resource.k8s.io PodScheduling -> PodSchedulingContext
...
The name "PodScheduling" was unusual because in contrast to most other names,
it was impossible to put an article in front of it. Now PodSchedulingContext is
used instead.
2023-03-14 10:18:08 +01:00
Patrick Ohly
29941b8d3e
api: resource.k8s.io v1alpha1 -> v1alpha2
...
For Kubernetes 1.27, we intend to make some breaking API changes:
- rename PodScheduling -> PodSchedulingHints (https://github.com/kubernetes/kubernetes/issues/114283 )
- extend ResourceClaimStatus (https://github.com/kubernetes/enhancements/pull/3802 )
We need to switch from v1alpha1 to v1alpha2 for that.
2023-03-14 07:52:03 +01:00
Sathyanarayanan Saravanamuthu
bf4f907bfa
Improving schedule extender test coverage
...
Signed-off-by: Sathyanarayanan Saravanamuthu <sathyanarays@vmware.com>
2022-12-05 12:10:10 +05:30
Patrick Ohly
d2ff210c20
scheduler: add dynamic resource allocation plugin
...
The plugin handles the interaction with ResourceClaims that are referenced by a
Pod.
2022-11-11 21:58:03 +01:00
Wei Huang
0b27f25252
PreEnqueue implementation
...
- Add PreEnqueuePlugin to Scheduler Framework
- Implement PreEnqueuePlugin in scheduler queue
- Implementation of SchedulingGates plugin
- Metrics
2022-11-07 14:02:58 -08:00
Chris Henzie
2d0afbc054
scheduler: integration test for ReadWriteOncePod alpha
...
Tests scheduler enforcement of the ReadWriteOncePod PVC access mode.
- Creates a pod using a PVC with ReadWriteOncePod
- Creates a second pod using the same PVC
- Observes the second pod fails to schedule because PVC is in-use
- Deletes the first pod
- Observes the second pod successfully schedules
2022-11-01 15:08:01 -07:00
ialidzhikov
7c8a151faa
pkg/scheduler: Replace deprecated func usage from the k8s.io/utils/pointer
pkg
2022-08-16 08:39:18 +03:00
Alex Wang
f4bc904376
implementation for MatchLabelKeys in TopologySpreadConstraint
...
Signed-off-by: Alex Wang <wangqingcan1990@gmail.com>
2022-07-30 13:23:49 +08:00
kerthcet
790d983867
feat: implement NodeInclusionPolicy in TopologySpreadConstraint
...
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-05-11 07:51:18 +08:00
Yibo Zhuang
fd08d47d8b
cleanup: move scheduler tests to use PodWrapper
...
Move to use testing PodWrapper where applicable to
reduce duplicating pod creation code and shorten
number of lines.
Adding additional wrapper functions in PodWrapper
to ensure it covers all pod spec under tests.
Signed-off-by: Yibo Zhuang <yibzhuang@gmail.com>
2022-05-05 10:48:26 -07:00
Yuan Chen
d1a2f699a7
Add PodWrapper functions for scheduler testing
...
Fix a typo in comment
2022-04-19 20:30:04 -07:00
sanposhiho
6141aa53f9
Implement MinDomains
2022-03-15 01:38:44 +09:00
Kubernetes Prow Robot
0dcd6eaa0d
Merge pull request #103934 from boenn/tainttoleration
...
De-duplicate predicate (known as filter now) logic shared in kubelet and scheduler
2022-02-09 16:53:46 -08:00
Abdullah Gharaibeh
33a04dc5f5
Added an integration test for NodeResourcesFit scoring
2021-11-30 12:13:30 -05:00
boenn
cec2aae1e5
rebase master
2021-11-25 11:21:12 +08:00
kerthcet
e5dd375b14
refactor scheudler's node resource plugins
...
Signed-off-by: kerthcet <kerthcet@gmail.com>
2021-11-03 00:52:23 +08:00
Wei Huang
b7d90ca991
sched: adjust events to register for VolumeBinding plugin
2021-10-07 08:51:04 -07:00
Wei Huang
dc079acc2b
sched: retry unschedule pods immediately after a waiting pod's deletion
2021-08-06 19:08:37 -07:00
Abdullah Gharaibeh
6c0976814c
use ownerReference to build default spreading contraints in the scheduler
2021-05-25 16:04:48 -04:00
Wei Huang
6384f397b4
sched: support PreEnqueueChecks prior to moving Pods
2021-03-11 12:31:50 -08:00
He Jie Xu
b3741f344e
The Pod is eligible to preempt when previous nominanted node is UnschedulableAndUnresolvable
...
If the Pod's previous nominated node is UnschedulableAndUnresolvable from previous
filtering, it should be considered for preemption again.
2020-07-03 08:57:45 +08:00
Wei Huang
7362fccdd7
Polish unit tests of defaultpreemptio plugin
2020-06-30 14:05:48 -07:00
Andrea Nodari
2e1042f959
Use NodeWrapper to directly initialize node with labels
...
Using NodeWrapper in the integration tests gives more flexibility when
creating nodes. For instance, tests can create nodes with labels or
with a specific sets of resources.
Also, NodeWrapper initialises a node with a capacity of 32 pods, which
can be overridden by the caller. This makes sure that a node is usable
as soon as it is created.
2020-06-30 17:18:15 +02:00
Aldo Culquicondor
07c4982245
Add unit and integration tests for multiple profiles support
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-02-26 10:14:03 -05:00
Wei Huang
815206685c
PodTopologySpread excludes terminatingPods when making scheduling decision
2020-02-06 07:38:50 -08:00
Wei Huang
e85473c2df
Benchmark test for PodAffinity
2019-09-19 10:52:03 -07:00
Wei Huang
caab8b74ba
EvenPodsSpread: integration test
2019-08-01 10:42:27 -07:00
Wei Huang
249752cc1f
fixup: fix comments and use a channel to pass err
2019-07-22 17:34:56 -07:00