kubernetes/pkg/apis
Kubernetes Submit Queue b3e4083f49 Merge pull request #36133 from luomiao/photon-support-PR-v2
Automatic merge from submit-queue

Support persistent volume usage for kubernetes running on Photon Controller platform

**What this PR does / why we need it:**
Enable the persistent volume usage for kubernetes running on Photon platform.
Photon Controller: https://vmware.github.io/photon-controller/

_Only the first commit include the real code change.
The following commits are for third-party vendor dependency and auto-generated code/docs updating._

Two components are added:
pkg/cloudprovider/providers/photon: support Photon Controller as cloud provider
pkg/volume/photon_pd: support Photon persistent disk as volume source for persistent volume

Usage introduction:
a. Photon Controller is supported as cloud provider.
When choosing to use photon controller as a cloud provider, "--cloud-provider=photon --cloud-config=[path_to_config_file]" is required for kubelet/kube-controller-manager/kube-apiserver. The config file of Photon Controller should follow the following usage:

```
[Global]
target = http://[photon_controller_endpoint_IP]
ignoreCertificate = true
tenant = [tenant_name]
project = [project_name]
overrideIP = true
```

b. Photon persistent disk is supported as volume source/persistent volume source.
yaml usage:

```
volumes:
  - name: photon-storage-1
    photonPersistentDisk:
        pdID: "643ed4e2-3fcc-482b-96d0-12ff6cab2a69"
```
pdID is the persistent disk ID from Photon Controller.

c. Enable Photon Controller as volume provisioner.
yaml usage:

```
kind: StorageClass
apiVersion: storage.k8s.io/v1beta1
metadata:
  name: gold_sc
provisioner: kubernetes.io/photon-pd
parameters:
  flavor: persistent-disk-gold
```

The flavor "persistent-disk-gold" needs to be created by Photon platform admin before hand.
2016-11-09 00:10:22 -08:00
..
abac add script to check for updates to the files for generation 2016-11-01 15:59:50 -04:00
apps (Auto-gen) Run hack/update-all & update-bazel & update linted packages 2016-11-02 15:16:41 -07:00
authentication generated: alternative unsafe conversions 2016-10-31 11:00:29 -04:00
authorization ExportOptions should be registered to all public schemas 2016-11-01 22:55:58 -04:00
autoscaling ExportOptions should be registered to all public schemas 2016-11-01 22:55:58 -04:00
batch Generated changes 2016-11-07 11:26:50 +01:00
certificates ExportOptions should be registered to all public schemas 2016-11-01 22:55:58 -04:00
componentconfig update generated files 2016-11-08 12:13:50 -08:00
extensions Support persistent volume on Photon Controller platform 2016-11-08 09:36:16 -08:00
imagepolicy generated: alternative unsafe conversions 2016-10-31 11:00:29 -04:00
policy Fix kubectl drain for statefulset and use eviciton for drain if possible 2016-11-07 16:13:06 -08:00
rbac generated: alternative unsafe conversions 2016-10-31 11:00:29 -04:00
storage generated: alternative unsafe conversions 2016-10-31 11:00:29 -04:00
OWNERS Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00