kerthcet
5ecaeb325f
refactor: remove configurator in scheduler
...
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-03-20 23:57:26 +08:00
kerthcet
a6f695581b
remove legacy scheduler policy config, as well as associated flags policy-config-file, policy-configmap, policy-configmap-namespace and use-legacy-policy-config
...
Signed-off-by: kerthcet <kerthcet@gmail.com>
2021-10-08 23:57:49 +08:00
wojtekt
d9b08c611d
Migrate to k8s.io/utils/clock
2021-09-17 15:19:08 +02:00
Wei Huang
a689ad4cda
sched: start dynamicInformerFactory along with regular informerFactory ( #105016 )
...
* sched: start dynamicInformerFactory along with regular informerFactory
* fixup: start all informers and then wait for their syncs
2021-09-16 19:33:00 -07:00
Dave Chen
1fa673c15c
Extent the NodeResourcesBalancedAllocation
plugin to cover more resources
...
Signed-off-by: Dave Chen <dave.chen@arm.com>
2021-06-30 11:15:12 +08:00
yuzhiquan
deb14b995a
Add score plugin for NodeResourcesFit
2021-06-29 13:16:55 -04:00
Abdullah Gharaibeh
265ef1741f
Move scheduler plugin set and configuration defaulting to component config
2021-06-16 10:15:29 -04:00
Abdullah Gharaibeh
52f5ba3a58
Remove SchedulerAlgorithmSource from scheduler's internal CC API
2021-06-09 19:14:54 -04:00
Wei Huang
1b3a124ba6
Scheduler now registers event handlers dynamically
...
- move clusterEventMap to Configurator
- dynamic event handlers registration for core API resources
- dynamic event handlers registration for custom resources
2021-05-21 13:47:06 -07:00
Kubernetes Prow Robot
17395678c4
Merge pull request #99671 from tanjing2020/scheduler-policy
...
Log invalid scheduler-policy input instead of panic
2021-03-09 09:19:26 -08:00
tanjing2020
2d79ebbe58
Log invalid scheduler-policy input instead of panic
2021-03-09 15:21:46 +08:00
Abdullah Gharaibeh
c7fef196b6
Implements pod affinity NamespaceSelector feature
2021-03-04 07:30:24 -05:00
Mengxue Zhang
4fb8e343c0
parse pod's node affinity once in preFilter
2021-02-25 00:21:32 +00:00
Kubernetes Prow Robot
1d02dfb79a
Merge pull request #99085 from gavinfish/jieshe/nominated-podinfo
...
Scheduler: Use PodInfo instead of Pod for nominatedPods and QueuedPodInfo
2021-02-24 08:52:50 -08:00
xiaofei.sun
fd62f32125
Scheduler: remove pkg/apis/core/field_constants.go
2021-02-24 18:06:29 +08:00
drfish
bc2df9de72
Use PodInfo instead of Pod for nominatedPods and QueuedPodInfo
2021-02-22 22:00:23 +08:00
Kubernetes Prow Robot
838bb6a567
Merge pull request #98663 from gavinfish/sched-remove-plugin-pt
...
Scheduler: change config.Plugins from pointers to objects
2021-02-10 15:36:15 -08:00
drfish
74315f9c56
Change config.Plugins from pointers to objects
2021-02-10 23:45:59 +08:00
Yecheng Fu
9a2713503a
multiple extenders and UnschedulableAndUnresolvable takes precedence
...
over Unschedulable
2021-01-29 11:32:43 +08:00
Kubernetes Prow Robot
d7a389ce7a
Merge pull request #96582 from chenyw1990/fixSchedulerBug
...
don't add pod to podQueue when the NodeName of pod is not empty
2020-12-08 17:29:35 -08:00
SataQiu
2b38078de1
scheduler: parse Pod's Node affinity once in PreScore phase
...
Signed-off-by: SataQiu <1527062125@qq.com>
2020-11-26 11:19:52 +08:00
chenyw1990
a8add50ab6
don't add pod to podQueue when the NodeName of pod is not empty
2020-11-19 08:01:59 +08:00
Kubernetes Prow Robot
ae95984e88
Merge pull request #96426 from damemi/print-scheduler-config
...
Log defaulted kube-scheduler component config at startup
2020-11-12 16:03:01 -08:00
Mike Dame
14fa76d92f
Log defaulted kube-scheduler component config at startup
2020-11-12 16:03:11 -05:00
Wei Huang
47a7c374c6
Fix a bug that DefaultPreemption plugin is disabled when using scheduler policy
2020-11-10 17:48:32 -08:00
Aldo Culquicondor
d6ef6d6e43
Capture defaulted plugin configs from framework
...
Some plugin configs are not produced until the framework is instantiated. Add a callback to capture them inside the framework constructor.
Change-Id: Id3f709b6461ccd0eafec7d21412cda093d9c4645
2020-11-10 19:41:18 -05:00
Amim Knabben
8ed6ca58bc
Replacing factory tests with scheduler.New and options
2020-10-22 11:43:28 -04:00
Aldo Culquicondor
87c8349bdc
Graduate DefaultPodTopologySpread to beta
...
And set to enabled by default
Change-Id: Ie4cc4758c52492924cb0663450f2747908cb5882
2020-10-19 16:58:09 -04:00
Ali
09b2e8f638
Move scheduler interface to pkg/scheduler/framework
2020-10-13 13:13:27 +11:00
Wei Huang
eb3d2de543
Remove field disablePreemption from internal scheduler codebase
2020-09-10 13:06:42 -07:00
Wei Huang
d8def59871
Initialize scheduler's podInformer in sharedInformerFactory
...
Scheduler's specific podInfomer is now initialized inside the sahredInformerFactory.
2020-09-08 12:57:17 -07:00
Chelsey Chen
ade2422883
Switch event recorder to use events.k8s.io/v1
2020-07-02 14:50:41 -04:00
Ali Farah
a22e115a0e
Split scheduler framework implementation into new runtime package
2020-06-22 00:23:43 +10:00
Yecheng Fu
1ff09c0934
Remove BindTimeoutSeconds from KubeSchedulerConfiguration
2020-06-03 09:54:06 +08:00
Wei Huang
133a02540f
Move unschedulable Pod to internal schedulingQ synchronously
...
- use in-cache Pod instead of real-time Pod (by calling API server) to mark it as unschedulable
in internal schedulingQ
- remove the backoff logic as now we don't call API server
- the whole logic is changed to a synchronous call
2020-05-15 19:27:28 -07:00
Kubernetes Prow Robot
57b79e3fb4
Merge pull request #91037 from Huang-Wei/prefactor-PreemptExtender
...
Refactor preemption extender logic and move SchedulerExtender interface to framework pkg
2020-05-15 02:48:30 -07:00
Wei Huang
e4f878ea3a
cleanup: use string instead of v1.Node as key of nodeToVictims
2020-05-13 13:08:20 -07:00
Yecheng Fu
c14b749521
scheduler/volumebinding: move all volume binding logic into VolumeBinding plugin
2020-05-12 10:13:05 +08:00
Wei Huang
e283e73994
Remove enableNonPreempting
field from scheduler codebase
2020-05-08 19:02:51 -07:00
Aldo Culquicondor
2935480cc8
Move Plugin Args defaults to versioned packages
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-05-06 18:00:23 -04:00
Aldo Culquicondor
98d1e241f1
Use internal config types in scheduling plugin args
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-04-29 17:07:10 -04:00
Abdullah Gharaibeh
a151682887
Split scheduler's PodInfo into two types, PodInfo and PodQueueInfo
2020-04-21 21:45:20 -04:00
Kubernetes Prow Robot
b35fdbc037
Merge pull request #89904 from alculquicondor/raw-extension-plugin-args
...
Use RawExtension and Object for external and internal, respectively, scheduling plugin args
2020-04-15 15:22:59 -07:00
Aldo Culquicondor
ce05382b58
Use RawExtension and Object for external and internal scheduling plugin args, respectively
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-04-14 13:44:42 -04:00
tanjunchen
5ab543500b
Scheduler:remove direct dependency for pkg/api/testing
2020-04-11 13:16:06 +08:00
Abdullah Gharaibeh
a5d8172715
move nodeinfo type to framework pkg
2020-04-07 10:25:24 -04:00
Abdullah Gharaibeh
ed3fe054df
move scheduler nodeinfo to pkg/scheduler/types
2020-03-31 21:02:09 -04:00
fxmumu
8beb2439a0
Remove nested if statement and test it
...
Remove nested if statement in scheduler err handler.
Test scheduler err that node not found.
2020-03-26 00:29:41 +08:00
Aldo Culquicondor
1fab27502b
Disallow use of Plugin or PluginConfig when using Policy
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-03-05 15:05:26 -05:00
Rafal Wicha
09598d48f6
Improve plugin args JSON tags
2020-03-02 15:20:44 +00:00