terraform-provider-minio icon indicating copy to clipboard operation
terraform-provider-minio copied to clipboard

Add support for setting `quota` in bucket

Open yardenshoham opened this issue 2 years ago • 2 comments

Description

When creating a bucket in the MinIO console, one may (optionally), specify a quota (e.g. 40Gi). I couldn't find a way to set a quota.

Support for setting quota on bucket creation was added in #143.

Expected behavior: There should be a property quota

Actual behavior: There isn't

yardenshoham avatar Jun 09 '22 07:06 yardenshoham

With some guidance from a contributor, I'll try to add it myself

yardenshoham avatar Jun 10 '22 10:06 yardenshoham

@yardenshoham This should be possible.

A short look into example code (https://github.com/minio/madmin-go/blob/8a5b69247fe5aee210e15bb418c210a3d83df0fe/examples/bucket-quota.go).. should be doable.

Unsure on how much time I have, but I'd be willing to review code if you're willing to make a PR.

I'd start experimentally like:

Have a look into resource_minio_s3_bucket.go, add a quota field, add handling for it when creating/updating/reading the bucket information.

BuJo avatar Aug 09 '22 09:08 BuJo

@yardenshoham The release v1.6.0 contains your work around bucket quotas. Thank you!

BuJo avatar Aug 17 '22 17:08 BuJo