k3s/pkg/volume/cinder
Davanum Srinivas 205b2eb3fd Use backup location to load cloud config for OpenStack
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
2018-01-22 09:40:09 -05:00
..
BUILD Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
OWNERS Update volume OWNERS to reflect active sig-storage reviewers 2017-10-26 13:26:33 -07:00
attacher.go Use backup location to load cloud config for OpenStack 2018-01-22 09:40:09 -05:00
attacher_test.go move detach out of os volumes attach 2018-01-10 19:09:32 +02:00
cinder.go Use backup location to load cloud config for OpenStack 2018-01-22 09:40:09 -05:00
cinder_test.go fix incorrect log 2017-10-26 01:40:24 +08:00
cinder_util.go Using exponential backoff instead of linear 2017-11-21 19:23:42 +08:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00