Merge pull request #39523 from xiangfeiz/fixVsphereVolumeExample

Automatic merge from submit-queue (batch tested with PRs 40215, 40340, 39523)

Use the same name in volumeMounts and volumes

In some example files of vSphere volumes, volumeMounts and volumes
have different names. kubectl create will fail with error message
saying the pod is invalid because volumeMount with the name is not
found.



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

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #

**Special notes for your reviewer**:

**Release note**:

```release-note
```
This commit is contained in:
Kubernetes Submit Queue 2017-01-24 18:24:01 -08:00 committed by GitHub
commit f42440cc25
3 changed files with 6 additions and 6 deletions

View File

@ -176,7 +176,7 @@
- name: test-volume
mountPath: /test-vmdk
volumes:
- name: vmdk-storage
- name: test-volume
persistentVolumeClaim:
claimName: pvc0001
```
@ -315,7 +315,7 @@
- name: test-volume
mountPath: /test-vmdk
volumes:
- name: vmdk-storage
- name: test-volume
persistentVolumeClaim:
claimName: pvcsc001
```

View File

@ -10,6 +10,6 @@ spec:
- name: test-volume
mountPath: /test-vmdk
volumes:
- name: vmdk-storage
- name: test-volume
persistentVolumeClaim:
claimName: pvc0001
claimName: pvc0001

View File

@ -10,6 +10,6 @@ spec:
- name: test-volume
mountPath: /test-vmdk
volumes:
- name: vmdk-storage
- name: test-volume
persistentVolumeClaim:
claimName: pvcsc0001
claimName: pvcsc001