mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
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:
commit
f42440cc25
@ -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
|
||||
```
|
||||
|
@ -10,6 +10,6 @@ spec:
|
||||
- name: test-volume
|
||||
mountPath: /test-vmdk
|
||||
volumes:
|
||||
- name: vmdk-storage
|
||||
- name: test-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: pvc0001
|
||||
claimName: pvc0001
|
||||
|
@ -10,6 +10,6 @@ spec:
|
||||
- name: test-volume
|
||||
mountPath: /test-vmdk
|
||||
volumes:
|
||||
- name: vmdk-storage
|
||||
- name: test-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: pvcsc0001
|
||||
claimName: pvcsc001
|
||||
|
Loading…
Reference in New Issue
Block a user