k3s/pkg/cloudprovider
Kubernetes Submit Queue 9c0e46bdff Merge pull request #40843 from luomiao/photon-cloud-provider-authentication-update
Automatic merge from submit-queue (batch tested with PRs 41756, 36344, 34259, 40843, 41526)

Update Photon Controller cloud provider for authentication support

Resolve Issue: [#40755](https://github.com/kubernetes/kubernetes/issues/40755)
1. Update the configuration file for Photon Controller cloud provider
2. Only master nodes can communicate with Photon Controller endpoint
3. Enable support for authentication-enabled Photon Controller endpoint
4. Update NodeAddresses function for query from local node

New format of photon controller config file:
```
[Global]
target = https://[LOAD_BALANCER_IP]:443
project = [PROJECT ID]
overrideIP = true
vmID = [LOCAL VM ID]
authentication = true
```
This config file will be automatically created by Photon Controller cluster management.

If authentication file is set to true, then a pc_login_info file should be placed under /etc/kubernetes with username and password.
This file can be created by user directly.
Or the user can choose to use kubernetes secret and a handling pod to avoid directly login to master nodes. This usage will be available with Photon Controller 1.2.
This is a temporary solution before metadata service becomes available in Photon Controller.
2017-02-20 13:39:39 -08:00
..
providers Merge pull request #40843 from luomiao/photon-cloud-provider-authentication-update 2017-02-20 13:39:39 -08:00
BUILD start the apimachinery repo 2017-01-11 09:09:48 -05:00
OWNERS Updated top level owners file to match new format 2017-01-19 11:29:16 -08:00
cloud.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
plugins.go more readable 2016-12-07 11:35:50 +08:00