Commit Graph

3859 Commits

Author SHA1 Message Date
Jakub Tużnik 7a188ab50d Provide ScaleDownStatusProcessor with info about unremovable nodes 2020-02-11 15:27:33 +01:00
Kubernetes Prow Robot 66f6328433
Merge pull request #2796 from losipiuk/lo/scheduler-framework-poc3
Scheduler Framework based PredicateChecker
2020-02-05 02:41:55 -08:00
Łukasz Osipiuk 8e07715d29 Disable GO111MODULE in for-go-proj.sh
This is temporary hack. We should stop using for-go-proj.sh to
verify cluster autoscaler and migrate to directly calling make.

Change-Id: I0c41c918f78cdfa0e5fd0dd60139a54db90540ea
2020-02-04 22:28:15 +01:00
Łukasz Osipiuk 4b30a6f499 Rename propagateClusterSnapshot to initializeClusterSnapshot 2020-02-04 20:52:08 +01:00
Łukasz Osipiuk 7b67d3f582 klog.Fatalf on error from ClusterSnapshot.Revert() 2020-02-04 20:52:07 +01:00
Łukasz Osipiuk 156ea8b5d3 Remove NodeWithPod 2020-02-04 20:52:05 +01:00
Łukasz Osipiuk e5c60c81a9 Remove Estimator's upcoming nodes paramter 2020-02-04 20:52:04 +01:00
Łukasz Osipiuk e8eb30e75a Better error checking in GetDaemonSetPodsForNode 2020-02-04 20:52:03 +01:00
Łukasz Osipiuk 0dca11fa11 Remove InitializeClusterSnapshotNoError function 2020-02-04 20:52:02 +01:00
Łukasz Osipiuk d10ca37deb Inline checkPredicate and fitsAnyNode functions 2020-02-04 20:52:00 +01:00
Łukasz Osipiuk 302c5dad1e Extract DelegatingSchedulerSharedLister to separate file 2020-02-04 20:51:59 +01:00
Łukasz Osipiuk bd04fed604 Fix TestDebugInfo 2020-02-04 20:51:58 +01:00
Aleksandra Malinowska a2ac31e290 Disable aws region test (newly failing, probably after vendor update) 2020-02-04 20:51:57 +01:00
Łukasz Osipiuk 8a683b108d Remove deprecate flows from SchedulerBasedPredicateChecker 2020-02-04 20:51:56 +01:00
Łukasz Osipiuk bb68253394 Use unsetSharedLister as default in DelegatingSchedulerSharedLister 2020-02-04 20:51:54 +01:00
Łukasz Osipiuk a8a5ef71ae Move node-exitence check to top of checkPredicates method 2020-02-04 20:51:53 +01:00
Łukasz Osipiuk 6ed2636f10 Drop PredicateChecker.SnapshotClusterState 2020-02-04 20:51:52 +01:00
Łukasz Osipiuk 074254952b Make ClusterSnapshot extend scheduler's SharedLister interface 2020-02-04 20:51:51 +01:00
Łukasz Osipiuk 98efd05b4b Do not add Pods pointing to inexistent nodes to snapshot 2020-02-04 20:51:49 +01:00
Łukasz Osipiuk d7770e3044 Use ClusterSnapshot in ScaleDown 2020-02-04 20:51:48 +01:00
Łukasz Osipiuk 8f18bab081 Set kubernetes.io/hostname label on simulated node in BinpackingNodeEstimator 2020-02-04 20:51:47 +01:00
Łukasz Osipiuk 57615ba0b0 Use ClusterSnapshot in GetDaemonSetPodsForNode 2020-02-04 20:51:46 +01:00
Łukasz Osipiuk b6e1b26f45 Use ClusterSnapshot in BinpackingNodeEstimator 2020-02-04 20:51:45 +01:00
Łukasz Osipiuk 9433ef9ffa Use ClusterSnapshot in ScaleUp 2020-02-04 20:51:43 +01:00
Łukasz Osipiuk 9bb2fd15d7 Add TODO 2020-02-04 20:51:42 +01:00
Łukasz Osipiuk ebb7a2c01e Cleanup/Extend tests for SchedulerBasedPredicateChecker 2020-02-04 20:51:41 +01:00
Łukasz Osipiuk f8e6f6ff25 Add AddNodeWithPods method to ClusterSnapshot 2020-02-04 20:51:40 +01:00
Łukasz Osipiuk 8cb5fb256d FakeNodeInfoForNodeName 2020-02-04 20:51:38 +01:00
Łukasz Osipiuk 69800ab176 Simulate scheduling of pods waiting for preemption in ClusterSnapshot 2020-02-04 20:51:37 +01:00
Łukasz Osipiuk 2ec55dc55e Fixes for SchedulerBasedPredicateChecker tests 2020-02-04 20:51:36 +01:00
Łukasz Osipiuk d9891ae3ad Simplify PodListProcessor interface 2020-02-04 20:51:35 +01:00
Łukasz Osipiuk 014eff3ec8 Migrate filter_out_schedulable to use CluseterSnapshot 2020-02-04 20:51:34 +01:00
Łukasz Osipiuk 8ddcb21571 Introduce IsExpendablePod helper function 2020-02-04 20:51:32 +01:00
Łukasz Osipiuk 7e62105cb9 Add upcoming nodes to ClusterSnapshot 2020-02-04 20:51:31 +01:00
Łukasz Osipiuk 83d1c4ff8a Add GetAllPods and GetAllNodes to ClusterSnapshot 2020-02-04 20:51:30 +01:00
Łukasz Osipiuk 30ce46cc28 Pass ClusterSnapshot to BinpackingNodeEstimator 2020-02-04 20:51:29 +01:00
Łukasz Osipiuk fa2c6e4d9e Propagate cluster state to ClusterSnapshot 2020-02-04 20:51:27 +01:00
Łukasz Osipiuk 036103c553 Add ClusterSnapshot to AutoscalingContext 2020-02-04 20:51:26 +01:00
Łukasz Osipiuk b86385d85e BasicClusterSnapshot implementation 2020-02-04 20:51:25 +01:00
Łukasz Osipiuk 6b2287af4f Pass ClusterSnaphost explicitly to PredicateChecker 2020-02-04 20:51:24 +01:00
Łukasz Osipiuk 241a588c3c Define ClusterSnapshot interface 2020-02-04 20:51:23 +01:00
Łukasz Osipiuk 079fb4f649 Implement SnapshotClusterState 2020-02-04 20:51:21 +01:00
Łukasz Osipiuk db85b1b6f1 Implement NewTestPredicateChecker 2020-02-04 20:51:20 +01:00
Łukasz Osipiuk 39bb040b11 Remove unused priorityPredicates. 2020-02-04 20:51:19 +01:00
Łukasz Osipiuk 373c558303 Extract PredicateChecker interface 2020-02-04 20:51:18 +01:00
Łukasz Osipiuk fd01b98670 Remove NoOpEventRecorder 2020-02-04 20:51:16 +01:00
Łukasz Osipiuk 16764b8649 Directly call scheduler plugins in FitsAny 2020-02-04 20:51:15 +01:00
Łukasz Osipiuk b01f2fca8f Drop ConfigurePredicateCheckerForLoop 2020-02-04 20:51:14 +01:00
Łukasz Osipiuk 2679713436 Initial migration of PredicateChecker to scheduler framework (with TODOs) 2020-02-04 20:51:13 +01:00
Łukasz Osipiuk b0c6d25182 Cleanup simulator.PredicateError 2020-02-04 20:51:11 +01:00