Name PV as required by external provisioner contract
(cherry picked from commit 8fb0e5cc14)
This commit is contained in:
parent
76cafe8a6e
commit
1a9be4e278
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue