File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
pkg/volume/provisioner/fss Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,6 @@ func (fsp *filesystemProvisioner) Provision(options controller.VolumeOptions, ad
184184 // Randomly select a MountTarget IP address to attach to.
185185 var ip string
186186 {
187-
188187 id := target .PrivateIpIds [rand .Int ()% len (target .PrivateIpIds )]
189188 logger = logger .With ("privateIPID" , id )
190189 privateIP , err := fsp .client .Networking ().GetPrivateIP (ctx , id )
@@ -218,7 +217,7 @@ func (fsp *filesystemProvisioner) Provision(options controller.VolumeOptions, ad
218217
219218 return & v1.PersistentVolume {
220219 ObjectMeta : metav1.ObjectMeta {
221- Name : * fs . Id ,
220+ Name : options . PVName ,
222221 Annotations : map [string ]string {
223222 ociVolumeID : * fs .Id ,
224223 ociExportID : * export .Id ,
You can’t perform that action at this time.
0 commit comments