k3s/pkg/cloudprovider/providers/openstack
Kubernetes Submit Queue 35840bf71e
Merge pull request #58300 from dims/specify-auth-info-as-environment-variables
Automatic merge from submit-queue (batch tested with PRs 58300, 58530, 57942, 58543). 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>.

Ability to specify OS_* variables for OpenStack configuration

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

When we convert the OpenStack cloud provider to run in an external
process, we should be able to use kubernetes Secrets capability to
inject the OS_* variables. This way we can specify the cloud
configuration as a configmap, specify secrets for the userid/password
information. The configmap can be mounted as a file. the secrets can
be made available as environment variables. the external controller
itself can run as a pod/daemonset.

For backward compat, we preload all the OS_* variables, if anything
is in the config file, then that overrides the environment variables.


**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
Authentication information for OpenStack cloud provider can now be specified as environment variables
```
2018-01-19 20:00:31 -08:00
..
BUILD use danglingerror 2018-01-07 18:50:42 +02:00
MAINTAINERS.md
OWNERS Volunteer to help with sig/openstack 2017-10-13 16:49:59 +08:00
metadata.go openstack: fetch volume path from metadata service 2017-11-09 12:36:18 +02:00
metadata_test.go openstack: fetch volume path from metadata service 2017-11-09 12:36:18 +02:00
openstack.go Ability to specify OS_* variables for OpenStack configuration 2018-01-18 09:52:35 -05:00
openstack_client.go Support VolumeV3 for OpenStack cloud Provider 2017-11-22 16:45:38 +08:00
openstack_instances.go Log message at a better level 2018-01-15 15:06:47 -05:00
openstack_loadbalancer.go The lbaas.opts.SubnetId should be set by subnet id. 2018-01-12 18:59:53 +08:00
openstack_metrics.go Recording openstack metrics 2017-05-22 10:47:08 +08:00
openstack_routes.go Merge pull request #56258 from databus23/patch-1 2018-01-18 06:53:15 -08:00
openstack_routes_test.go Find a server name and router id to test TestRoutes 2017-11-27 16:32:10 -05:00
openstack_test.go Ability to specify OS_* variables for OpenStack configuration 2018-01-18 09:52:35 -05:00
openstack_volumes.go move detach out of os volumes attach 2018-01-10 19:09:32 +02:00