k3s/pkg/scheduler
Kubernetes Submit Queue f3b98a08b0
Merge pull request #66799 from noqcks/master
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.

Add validation for kube-scheduler configuration options

**What this PR does / why we need it**: This adds validation to the kube-scheduler so that we're not accepting bogus values to the kube-scheduler. As requested by @bsalamat in issue https://github.com/kubernetes/kubernetes/issues/66743

**Which issue(s) this PR fixes**:
Fixes #66743

**Special notes for your reviewer**:
- Not sure if this validation is too heavy handed. Would love some feedback. 
- I started working on this before I realized @islinwb was also working on this same problem... https://github.com/kubernetes/kubernetes/pull/66787 I put this PR up anyways since I'm sure good code exists in both. I wasn't aware of the /assign command so didn't assign myself before starting work. 
- I didn't have time to work on adding validation to deprecated cli options. If the rest of this looks ok, I can finish that up.
- I hope the location of IsValidSocketAddr is correct. Lmk if it isn't. 

**Release note**:
```release-note
Adding validation to kube-scheduler at the API level
```
2018-09-03 17:17:49 -07:00
..
algorithm addressed reviewer comments 2018-08-30 01:48:55 +02:00
algorithmprovider Move image locality to default priority functions 2018-08-31 00:58:09 -07:00
api Add a scheduler config argument to set the percentage of nodes to score 2018-08-17 11:18:51 -07:00
apis/config Add validation for kube-scheduler 2018-08-31 22:29:19 -04:00
cache Fix cloning image states from node info 2018-08-31 00:58:29 -07:00
core Merge pull request #67760 from houjun41544/20180823 2018-08-26 19:39:06 -07:00
factory Fix golint error under scheduler/factory. 2018-08-23 17:24:32 +08:00
metrics
testing Add NodeTree to the scheduler cache 2018-08-17 09:56:51 -07:00
util Add unit test cases for scheduler/util. 2018-08-23 15:26:27 +08:00
volumebinder
BUILD auto-generated 2018-08-24 10:58:09 +08:00
OWNERS
scheduler.go Wait for Scheduler cache empty. 2018-08-31 19:42:10 +08:00
scheduler_test.go Add a scheduler config argument to set the percentage of nodes to score 2018-08-17 11:18:51 -07:00
testutil.go