k3s/pkg/kubeapiserver
Kubernetes Submit Queue 5337ff8009
Merge pull request #55859 from hzxuzhonghu/listener-genericapiserver
Automatic merge from submit-queue (batch tested with PRs 56021, 55843, 55088, 56117, 55859). 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>.

apiserver:  pass a listener into genericapiserver bootstrapping 

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

>At the moment we pass a port via the options into the config. A zero port does not work because the loopback clients created during apiserver initialization need to know the port before. Passing a listener into the server instead would allow us to use a zero port beforehand and bootstrapping order should be fine.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #55784

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2017-11-21 12:16:59 -08:00
..
admission admission/webhook: move webhook initializer into plugin 2017-11-20 09:28:42 +01:00
authenticator update BUILD files 2017-10-15 18:18:13 -07:00
authorizer update BUILD files 2017-10-15 18:18:13 -07:00
options Deprecate using cloud provider to set host address feature 2017-10-24 17:39:33 -04:00
server pass listener to genericapiserver 2017-11-21 11:00:15 +08:00
BUILD Update generated files 2017-11-09 12:14:08 +01:00
OWNERS add liggitt to kubeapiserver owners 2017-04-03 10:14:34 -04:00
default_storage_factory_builder.go pkg/api/legacyscheme: fixup imports 2017-10-18 17:23:55 +02:00
default_storage_factory_builder_test.go pkg/apis/core: mechanical import fixes in dependencies 2017-11-09 12:14:08 +01:00
doc.go