Name PV as required by external provisioner contract

(cherry picked from commit 8fb0e5cc14)
This commit is contained in:
Matthew Wong 2017-06-19 12:26:12 -04:00 committed by kmova
parent 76cafe8a6e
commit 1a9be4e278
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ func (p *nfsProvisioner) Provision(options controller.VolumeOptions) (*v1.Persis
pv := &v1.PersistentVolume{
ObjectMeta: metav1.ObjectMeta{
Name: pvName,
Name: options.PVName,
},
Spec: v1.PersistentVolumeSpec{
PersistentVolumeReclaimPolicy: options.PersistentVolumeReclaimPolicy,