Commit 1a9be4e2 by Matthew Wong Committed by kmova

Name PV as required by external provisioner contract

(cherry picked from commit 8fb0e5cc1460a482976ed6bcd9feead20e82e06d)
parent 76cafe8a
...@@ -70,7 +70,7 @@ func (p *nfsProvisioner) Provision(options controller.VolumeOptions) (*v1.Persis ...@@ -70,7 +70,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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment