Skip to content

Commit

Permalink
Merge pull request #15 from lpabon/b13
Browse files Browse the repository at this point in the history
StorageClass parameters to CSI CreateVolume call
  • Loading branch information
lpabon authored Dec 8, 2017
2 parents b29f100 + 0b9541f commit d9811b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,11 @@ func (p *csiProvisioner) Provision(options controller.VolumeOptions) (*v1.Persis
capacity := options.PVC.Spec.Resources.Requests[v1.ResourceName(v1.ResourceStorage)]
volSizeBytes := capacity.Value()

// Create a CSI CreateVolumeRequest
req := csi.CreateVolumeRequest{
Name: share,
Version: &csiVersion,
Name: share,
Version: &csiVersion,
Parameters: options.Parameters,
VolumeCapabilities: []*csi.VolumeCapability{
&csi.VolumeCapability{
AccessType: accessType,
Expand Down

0 comments on commit d9811b7

Please sign in to comment.