Name PV as required by external provisioner contract
This commit is contained in:
parent
ca3c75897c
commit
8fb0e5cc14
|
|
@ -71,7 +71,7 @@ func (p *nfsProvisioner) Provision(options controller.VolumeOptions) (*v1.Persis
|
||||||
|
|
||||||
pv := &v1.PersistentVolume{
|
pv := &v1.PersistentVolume{
|
||||||
ObjectMeta: metav1.ObjectMeta{
|
ObjectMeta: metav1.ObjectMeta{
|
||||||
Name: pvName,
|
Name: options.PVName,
|
||||||
},
|
},
|
||||||
Spec: v1.PersistentVolumeSpec{
|
Spec: v1.PersistentVolumeSpec{
|
||||||
PersistentVolumeReclaimPolicy: options.PersistentVolumeReclaimPolicy,
|
PersistentVolumeReclaimPolicy: options.PersistentVolumeReclaimPolicy,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue