k3s/pkg
Kubernetes Submit Queue 4b01601a07
Merge pull request #59363 from yguo0905/sched-config
Automatic merge from submit-queue (batch tested with PRs 59394, 58769, 59423, 59363, 59245). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

kube-scheduler: Use default predicates/prioritizers if they are unspecified in the policy config

**What this PR does / why we need it**:

The scheduler has built-in default sets of predicate/prioritizer that are applied on pod scheduling. It can also take a policy config file where predicate/prioritizer and extender settings can be specified. The current behavior is that if we want to configure an extender using the policy config, we have to also provide the default predicate/prioritizer settings. Otherwise, the empty predicate/prioritizer sets will be used.

This is inconvenient, and it's hard to keep the policy config up to date with the scheduler's defaults. This PR changes the scheduler to use the default predicate/prioritizer sets if they are unspecified in the policy config. But an empty list would bypass non-mandatory predicates/prioritizers.

This will change the behavior of a policy config that does not specify (but not empty list) predicate/prioritizer, but it's unlike someone is using such config in practice.

**Special notes for your reviewer**:

I think it makes sense to have this in 1.9 as well because
- It's safe, given the scope of this change and the fact that it's very unlikely that someone is using a policy config with empty predicates/prioritizers.
- Compared with the risk, asking users to provide the default predicate/prioritizer sets for is error-prone and may cause other issues.

**Release note**:

```release-note
kube-scheduler: Use default predicates/prioritizers if they are unspecified in the policy config
```

/sig scheduling
/assign @bsalamat
/cc @vishh
2018-02-06 21:34:46 -08:00
..
api Merge pull request #54680 from tianshapjq/testcase-pod/util_test.go 2018-02-06 06:31:29 -08:00
apis Merge pull request #57092 from linyouchong/linyouchong-20171212 2018-02-06 18:49:36 -08:00
auth Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
capabilities Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
client Fix typo 2018-02-01 19:11:19 +08:00
cloudprovider Merge pull request #59423 from jingax10/upgrade_aliases_branch 2018-02-06 21:34:43 -08:00
controller Merge pull request #59394 from mikedanese/svcacct1 2018-02-06 21:27:57 -08:00
credentialprovider Better check for GCE VM 2018-01-17 18:35:51 -05:00
features Merge pull request #59252 from jsafrane/mountpropagation-beta 2018-02-05 22:28:38 -08:00
fieldpath Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
generated Merge pull request #59334 from cblecker/top-dir-owners 2018-02-05 21:14:37 -08:00
kubeapiserver Merge pull request #58743 from NickrenREN/pv-protection 2018-02-01 19:39:52 -08:00
kubectl Merge pull request #58991 from juanvallejo/jvallejo/fix-apply-force 2018-02-06 10:40:37 -08:00
kubelet Merge pull request #59287 from cheftako/cloud-context-level 2018-02-06 20:27:39 -08:00
kubemark
master Merge pull request #59287 from cheftako/cloud-context-level 2018-02-06 20:27:39 -08:00
printers Merge pull request #52942 from amitkumarj441/patch-3 2018-02-06 07:10:00 -08:00
probe Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
proxy Merge pull request #57336 from danwinship/proxier-simplification 2018-02-06 15:54:07 -08:00
quota Merge pull request #50286 from Pingan2017/modify0808 2018-01-15 11:35:03 -08:00
registry Promote v1alpha1 meta to v1beta1 2018-02-02 14:00:45 -05:00
routes
scheduler kube-scheduler: Use default predicates/prioritizers if policy config does not specify them 2018-02-06 13:01:33 -08:00
security selinux/mustrunas_test.go(TestMustRunAsValidate): add more test cases to improve code coverage. 2018-01-24 18:52:11 +01:00
securitycontext pkg/securitycontext/util_test.go(TestAddNoNewPrivileges): update tests. 2018-01-08 15:46:39 +01:00
serviceaccount svcacct: move claim generation out of TokenGenerator 2018-02-06 13:19:54 -08:00
ssh Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
util Merge pull request #57268 from m1093782566/validate-ipset 2018-02-06 14:35:34 -08:00
version Kubelet flags take precedence 2018-01-29 10:07:37 -08:00
volume Merge pull request #59287 from cheftako/cloud-context-level 2018-02-06 20:27:39 -08:00
watch/json remove outdate package 2018-01-15 23:17:19 +08:00
.import-restrictions
BUILD Merge pull request #58295 from zouyee/outdate 2018-02-05 22:28:41 -08:00
OWNERS