update operator to latest master (#792)

this is to remove logsearchapi dependency
on audit.Entry structure from MinIO server.
This commit is contained in:
Harshavardhana
2021-06-07 20:53:03 -07:00
committed by GitHub
parent c2dc7391e4
commit 91f165ca32
11 changed files with 29 additions and 168 deletions

View File

@@ -308,10 +308,7 @@ func getListBucketsResponse(session *models.Principal) (*models.ListBucketsRespo
// makeBucket creates a bucket for an specific minio client
func makeBucket(ctx context.Context, client MinioClient, bucketName string, objectLocking bool) error {
// creates a new bucket with bucketName with a context to control cancellations and timeouts.
if err := client.makeBucketWithContext(ctx, bucketName, "us-east-1", objectLocking); err != nil {
return err
}
return nil
return client.makeBucketWithContext(ctx, bucketName, "", objectLocking)
}
// getMakeBucketResponse performs makeBucket() to create a bucket with its access policy