k3s/pkg
Kubernetes Submit Queue 191f9dd5ff
Merge pull request #58549 from dims/backup-default-location-for-cloud-config
Automatic merge from submit-queue (batch tested with PRs 58480, 58549). 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>.

Use backup location to load cloud config for OpenStack

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

Since we are transitioning to external cloud provider, we need a way
to use the existing cinder volume plugin (from kubelet). With external
cloud manager kubelet will be run with --cloud=provider=external and
no --cloud-config file will be in the command line. So we need a way
to load the openstack config file from somewhere.

Taking a cue from kubeadm, which currently is picking up "/etc/kubernetes/cloud-config"
https://github.com/kubernetes/kubernetes/blob/master/cmd/kubeadm/app/phases/controlplane/manifests.go#L44

let's support the scenario where we fall back to this static location if
there is no cloud provider specified in the command line.

This has been tested with local-up-cluster using the following params:
EXTERNAL_CLOUD_PROVIDER=true
CLOUD_PROVIDER=openstack
CLOUD_CONFIG=/etc/kubernetes/cloud-config


**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 #

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2018-01-23 05:01:31 -08:00
..
api Merge pull request #57059 from ericchiang/client-go/remove-openapi-import 2018-01-12 01:26:16 -08:00
apis auto generated code 2018-01-16 12:34:31 +08:00
auth
capabilities
client Merge pull request #57504 from yue9944882/fix-fake-client-dummy-watch 2018-01-16 08:39:03 -08:00
cloudprovider Merge pull request #58667 from feiskyer/fmt 2018-01-23 01:14:28 -08:00
controller Merge pull request #57149 from deads2k/rebase-02-quota 2018-01-22 19:02:29 -08:00
credentialprovider Better check for GCE VM 2018-01-17 18:35:51 -05:00
features Merge pull request #56948 from MrHohn/esipp-remove-feature-gate 2018-01-19 00:35:01 -08:00
fieldpath
generated
kubeapiserver run update bazel and staging-godep 2018-01-22 19:10:28 +08:00
kubectl Merge pull request #58144 from tomerf/kubectl_cp_prefix 2018-01-22 19:02:27 -08:00
kubelet Merge pull request #58528 from deads2k/kubelet-02-mincipher 2018-01-22 20:49:35 -08:00
kubemark
master Remove unused code in UT files in pkg/ 2018-01-15 16:02:35 +08:00
printers Show all the annotations in ingress rules 2018-01-19 14:13:17 -03:00
probe
proxy Merge pull request #57942 from m1093782566/localhost-masq 2018-01-19 20:00:36 -08:00
quota Merge pull request #50286 from Pingan2017/modify0808 2018-01-15 11:35:03 -08:00
registry return reason for allowed rbac authorizations 2018-01-19 14:32:39 -05:00
routes
scheduler Merge pull request #58590 from zhangxiaoyu-zidif/fix-assuemePod 2018-01-23 00:47:26 -08:00
security Remove unused code in UT files in pkg/ 2018-01-15 16:02:35 +08:00
securitycontext pkg/securitycontext/util_test.go(TestAddNoNewPrivileges): update tests. 2018-01-08 15:46:39 +01:00
serviceaccount Remove unused code in UT files in pkg/ 2018-01-15 16:02:35 +08:00
ssh
util Merge pull request #58284 from mfojtik/findmnt-out 2018-01-18 13:11:30 -08:00
version All Kubelet flags should be explicitly registered 2018-01-09 17:37:34 -08:00
volume Merge pull request #58549 from dims/backup-default-location-for-cloud-config 2018-01-23 05:01:31 -08:00
watch
.import-restrictions
BUILD create auto-gen files 2018-01-17 16:23:03 +08:00
OWNERS