Allow configuring mounter via storageclass parameter
This commit is contained in:
parent
ad1bfbafde
commit
74eca7e00b
7 changed files with 18 additions and 17 deletions
pkg/s3
|
@ -50,6 +50,8 @@ func (cs *controllerServer) CreateVolume(ctx context.Context, req *csi.CreateVol
|
|||
}
|
||||
|
||||
capacityBytes := int64(req.GetCapacityRange().GetRequiredBytes())
|
||||
params := req.GetParameters()
|
||||
mounter := params[mounterTypeKey]
|
||||
|
||||
glog.V(5).Infof("Got a request to create bucket %s", volumeID)
|
||||
|
||||
|
@ -77,6 +79,7 @@ func (cs *controllerServer) CreateVolume(ctx context.Context, req *csi.CreateVol
|
|||
}
|
||||
b := &bucket{
|
||||
Name: volumeID,
|
||||
Mounter: mounter,
|
||||
CapacityBytes: capacityBytes,
|
||||
FSPath: fsPrefix,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue