Abdullah Gharaibeh
5b20b68bc9
Updated the scheduler framework's PreFilter interface to return a PreFilterResult
2022-03-14 15:36:52 -04:00
Alex Wang
541907334e
graduate nonpreemptingpriority to ga
2022-02-08 18:11:23 +08:00
Kubernetes Prow Robot
84f1d6834f
Merge pull request #106619 from chendave/ga
...
Graduate `PreferNominatedNode` to GA
2022-01-04 15:21:19 -08:00
Wei Huang
2433b083a9
clear pod's .status.nominatedNodeName when necessary
2021-12-16 10:55:13 -08:00
Dave Chen
8609358975
Graduate PreferNominatedNode
to GA
...
Signed-off-by: Dave Chen <dave.chen@arm.com>
2021-11-24 14:50:53 +08:00
Dave Chen
1500a5ca80
Simplify the integration test by removing the struct of nodeConfig
...
Signed-off-by: Dave Chen <dave.chen@arm.com>
2021-10-12 17:46:38 +08:00
Kubernetes Prow Robot
c2cbf5ff49
Merge pull request #105509 from ravisantoshgudimetla/fix-integration
...
[scheduler] [test]: Fix PreferNominatedNode test
2021-10-11 20:01:46 -07: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
ravisantoshgudimetla
283b176102
[test]: modify integration tests to use v1beta3
2021-10-07 10:58:07 -04:00
ravisantoshgudimetla
9476237923
[scheduler] [test]: Fix PreferNominatedNode test
...
Once the node gets deleted, the nodelifecycle controller
is racing to update pod status and the pod deletion logic
is failing causing tests to flake. This commit moves
the testContext creation to within the test loop and deletes nodes,
namespace within the test loop. We don't explicitly call the node
deletion within the loop but the `testutils.CleanupTest(t, testCtx)`
call ensures that the namespace, nodes gets deleted.
2021-10-06 09:07:16 -04:00
Mengjiao Liu
da35add03f
Rename master to apiserver in test/integration
2021-06-17 15:48:39 +08:00
Abdullah Gharaibeh
265ef1741f
Move scheduler plugin set and configuration defaulting to component config
2021-06-16 10:15:29 -04:00
drfish
74315f9c56
Change config.Plugins from pointers to objects
2021-02-10 23:45:59 +08:00
Kubernetes Prow Robot
21d3c73f54
Merge pull request #93179 from chendave/preemption_improve
...
prefer nominated node - IMPL
2021-01-26 21:03:40 -08:00
Dave Chen
6d800ffe07
Prefer nominated node in the new scheduling cycle
...
Signed-off-by: Dave Chen <dave.chen@arm.com>
2021-01-26 09:59:00 +08:00
drfish
d4418c1402
Update the PreFilterExtensions interface to use PodInfo
2021-01-19 00:49:52 +08:00
Kubernetes Prow Robot
147a120948
Merge pull request #82222 from Huang-Wei/0-informer-sync-period
...
Set 0 sync period in scheduler integration test
2020-11-16 11:16:04 -08:00
Kubernetes Prow Robot
3e43d5b92a
Merge pull request #96292 from wangyx1992/cleanup-scheduler-log-capatilization
...
cleanup: fix log capitalization in scheduler
2020-11-12 11:20:45 -08:00
Yixiang2019
842cc6b4e2
cleanup: fix log capitalization in scheduler
...
Signed-off-by: Yixiang2019 <wang.yixiang@zte.com.cn>
2020-11-12 20:10:26 +08:00
Wei Huang
185093bd4e
Set 0 sync period in scheduler integration test
2020-11-11 12:56:13 -08:00
Wei Huang
b5eeb8cd0f
cleanup dated wording "NominatedNodeName annotation"
2020-11-06 13:42:01 -08:00
Ali
09b2e8f638
Move scheduler interface to pkg/scheduler/framework
2020-10-13 13:13:27 +11: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
Wei Huang
4b26ef2217
Remove DisablePreemption field from SchedulerConfig v1beta1
...
DisablePreemption field can be removed as it can be deduced from PostFilterPlugins.
2020-07-08 09:58:42 -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
Ali Farah
a22e115a0e
Split scheduler framework implementation into new runtime package
2020-06-22 00:23:43 +10:00
Wei Huang
51a9dcce22
Revert "Fix an issue that a Pod's nominatedNodeName cannot be cleared when the nominated node is deleted"
...
This reverts commit 369a9001c6
.
2020-06-09 16:47:37 -07:00
Kubernetes Prow Robot
fc30f8854d
Merge pull request #91849 from knabben/scheduler-integration-pre
...
Scheduler integration tests standarization
2020-06-08 21:44:26 -07:00
Amim Knabben
5e679cf51f
Scheduler integration tests standarization
2020-06-07 09:47:11 -04:00
Wei Huang
369a9001c6
Fix an issue that a Pod's nominatedNodeName cannot be cleared when the nominated node is deleted
2020-06-03 17:45:06 -07:00
Alex Wang
505ae6930f
add integration-test for NonPreemption
2020-05-29 11:54:03 +08:00
Kubernetes Prow Robot
6cf4ab3c8c
Merge pull request #91071 from alculquicondor/integration_new_node
...
Add test case for a pod becoming schedulable when a node is added
2020-05-19 15:22:33 -07:00
Davanum Srinivas
442a69c3bd
switch over k/k to use klog v2
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-16 07:54:27 -04:00
Brian Pursley
9eb8e7a6d6
Changed scheduler to use patch when updating pod status to avoid potential conflicts
2020-05-14 15:17:53 -04:00
Aldo Culquicondor
35b9ab1227
Remove unnecessary clientset arg from initPausePod
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-05-14 11:47:12 -04:00
Jan Chaloupka
65e9826f79
integration: start informer and scheduler outside of InitTestScheduler
...
In case two or more controllers share the informers created through InitTestScheduler,
it's not safe to start the informers until all controllers set their informer
indexers. Otherwise, some controller might fail to register their indexers
in time. Thus, it's responsibility of each consumer to make sure all informers
are started after all controllers had time to get initiliazed.
2020-05-13 18:19:43 +02: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
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
Mike Danese
c58e69ec79
automated refactor
2020-03-05 14:59:46 -08:00
fengzixu
b67a033de2
Refactor: move generic functions of integration test to util directory
2020-02-29 14:56:39 +09:00
Aldo Culquicondor
c048858471
Support multiple scheduling profiles in a single scheduler
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-02-25 11:31:20 -05:00
Mike Danese
25651408ae
generated: run refactor
2020-02-08 12:30:21 -05:00
Mike Danese
3aa59f7f30
generated: run refactor
2020-02-07 18:16:47 -08:00
Mike Danese
d86fcd8c90
rename some declartions named context in tests
2020-01-16 15:09:28 -08:00
Abdullah Gharaibeh
c86f59610c
remove test/integration dependency on predicates and algorithmprovider
2020-01-08 19:51:22 -05:00
Kubernetes Prow Robot
36db62cd73
Merge pull request #86737 from oomichi/add-test-title-in-TestPreemption
...
Output test description in TestPreemption
2019-12-30 23:15:39 -08:00
Kenichi Omichi
00abe6d505
Output test description in TestPreemption
...
Now we are facing flake test of TestPreemption due to less available
node. TestPreemption consists of multiple test cases and the resource
is shared in them.
At this time, we cannot see what test cases run before the flake
happens. So it is better to know that to distinguish the cleanup of
pods is not completed or not.
2019-12-31 00:14:03 +00:00
Kenichi Omichi
43d9748d3a
Add error handling for Register() call
...
Register() can return an error as [1], so this adds the error handling.
[1]: f772c9017c/pkg/scheduler/framework/v1alpha1/registry.go (L56)
2019-12-30 23:35:26 +00:00
draveness
39af760930
feat: several cleanups in the scheduling package
...
+ Remove unused variable in tests.
+ Use more common statement for interface conformance check.
+ Fix several comments in the framework plugins.
2019-10-18 11:14:05 +08:00