Name PV as required by external provisioner contract

This commit is contained in:
Matthew Wong 2017-06-19 12:26:12 -04:00
parent ca3c75897c
commit 8fb0e5cc14
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,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,