ctrox / csi-s3

A Container Storage Interface for S3
Apache License 2.0
758 stars 167 forks source link

Shouldn't check bucket exist when using an specific exist bucket #59

Open ciiiii opened 2 years ago

ciiiii commented 2 years ago

When I am using an specific exist bucket, I prefer to use an s3 storage account without bucket related permission.

if nameOverride, ok := params[mounter.BucketKey]; ok {
    bucketName = nameOverride
   prefix = volumeID
   volumeID = path.Join(bucketName, prefix)
}

...

exists, err := client.BucketExists(bucketName)