Skip to content

Commit

Permalink
[Fix] localPv-provisioner: Removed unwanted commented lines
Browse files Browse the repository at this point in the history
Signed-off-by: Rahul M Chheda <[email protected]>
  • Loading branch information
Rahul M Chheda committed Dec 6, 2019
1 parent 8fab724 commit a7f0597
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/provisioner-localpv/app/provisioner_blockdevice.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,12 @@ func (p *Provisioner) ProvisionBlockDevice(opts pvController.VolumeOptions, volu
WithAnnotations(volAnnotations).
WithReclaimPolicy(opts.PersistentVolumeReclaimPolicy).
WithAccessModes(pvc.Spec.AccessModes).
//WithVolumeMode(volumeMode).
WithCapacityQty(pvc.Spec.Resources.Requests[v1.ResourceName(v1.ResourceStorage)]).
WithLocalHostPathFormat(path, fsType).
WithNodeAffinity(nodeHostname)

// If volumeMode set to "Block", then provide the appropriate volumeMode, to pvObj
if *opts.PVC.Spec.VolumeMode == v1.PersistentVolumeBlock {
//volumeMode = v1.PersistentVolumeBlock
pvObjBuilder.WithVolumeMode(v1.PersistentVolumeBlock)
}

Expand Down

0 comments on commit a7f0597

Please sign in to comment.