k3s/pkg/volume
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
..
aws_ebs Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
azure_dd add remount logic if original mount path is invalid 2018-01-08 06:01:42 +00:00
azure_file set fsGroup by securityContext.fsGroup in azure file 2018-01-17 09:24:50 +00:00
cephfs Merge pull request #56851 from zouyee/ceph-1 2018-01-10 03:12:28 -08:00
cinder Use backup location to load cloud config for OpenStack 2018-01-22 09:40:09 -05:00
configmap Merge pull request #57422 from joelsmith/nested_data_vol 2018-01-18 03:20:19 -08:00
csi Merge pull request #57948 from zhangxiaoyu-zidif/fix-ut-print 2018-01-23 03:53:33 -08:00
downwardapi Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
empty_dir Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
fc Update comments for getting and removing loopback device at iSCSI,FC,RBD 2018-01-17 10:22:39 -05:00
flexvolume Remove unused command waitfordetach from flex volume driver 2018-01-03 16:02:31 +08:00
flocker Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
gce_pd Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
git_repo Merge pull request #51098 from jsafrane/exec-git 2018-01-11 09:22:21 -08:00
glusterfs Add Namespace to glusterfs custom volume names. 2018-01-19 17:07:08 +05:30
host_path Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
iscsi Update comments for getting and removing loopback device at iSCSI,FC,RBD 2018-01-17 10:22:39 -05:00
local Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
nfs Fixed TearDown of NFS with root squash. 2018-01-08 14:01:33 +01:00
photon_pd Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
portworx Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
projected Merge pull request #57422 from joelsmith/nested_data_vol 2018-01-18 03:20:19 -08:00
quobyte Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
rbd Update comments for getting and removing loopback device at iSCSI,FC,RBD 2018-01-17 10:22:39 -05:00
scaleio Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
secret Merge pull request #57422 from joelsmith/nested_data_vol 2018-01-18 03:20:19 -08:00
storageos Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
testing VolumeHost.GetNodeName method added for CSI fix 2017-12-02 05:54:54 -05:00
util Merge pull request #57422 from joelsmith/nested_data_vol 2018-01-18 03:20:19 -08:00
validation Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
vsphere_volume remove duplicated import 2018-01-17 09:34:59 +08: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
doc.go
metrics_cached.go
metrics_du.go
metrics_du_test.go switch from package syscall to x/sys/unix 2017-07-21 12:14:42 +02:00
metrics_errors.go
metrics_nil.go
metrics_nil_test.go
metrics_statfs.go
metrics_statfs_test.go
plugins.go VolumeHost.GetNodeName method added for CSI fix 2017-12-02 05:54:54 -05:00
plugins_test.go Use const instead of hard code for volume plugin 2017-09-18 20:09:07 +08:00
util.go Merge pull request #56742 from zouyee/patch-12 2017-12-20 16:47:34 -08:00
util_test.go Revert k8s.gcr.io vanity domain 2017-12-22 14:36:16 -08:00
volume.go BlockVolumesSupport: CRI, VolumeManager and OperationExecutor changes 2017-11-20 14:10:26 -05:00
volume_linux.go Fixes cross platform build failure 2017-08-26 09:58:51 -04:00
volume_unsupported.go Fixes cross platform build failure 2017-08-26 09:58:51 -04:00