Fix Helm templates for empty bucket parameter
This commit is contained in:
parent
ceb2025160
commit
486b0990e5
2 changed files with 4 additions and 2 deletions
pkg/driver
|
@ -47,8 +47,8 @@ func (cs *controllerServer) CreateVolume(ctx context.Context, req *csi.CreateVol
|
|||
prefix := ""
|
||||
|
||||
// check if bucket name is overridden
|
||||
if nameOverride, ok := params[mounter.BucketKey]; ok {
|
||||
bucketName = nameOverride
|
||||
if params[mounter.BucketKey] != "" {
|
||||
bucketName = params[mounter.BucketKey]
|
||||
prefix = volumeID
|
||||
volumeID = path.Join(bucketName, prefix)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue