InseeFrLab / InseeFrLab/s3-operator
Buckets : check for used disk space before updating a quota
- Dominant language
- Go
- Stars
- 66
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
At the moment, it's possible to set a quota to a size lower than what is actually used by a bucket, which causes the operator to fail for path creation operations, with a generic error similar to this one :
```
2023-06-05T16:30:04.830+0200 INFO s3Client checking path existence on a bucket {"bucket": "dummy-bucket", "path": "opendata"}
2023-06-05T16:30:05.142+0200 INFO s3Client the path does not exist {"bucket": "dummy-bucket", "path": "opendata"}
2023-06-05T16:30:05.152+0200 INFO s3Client creating a path on a bucket {"bucket": "dummy-bucket", "path": "opendata"}
2023-06-05T16:30:05.252+0200 ERROR s3Client an error occurred during path creation on bucket {"bucket": "dummy-bucket", "path": "opendata", "error": "Bucket quota exceeded"}
github.com/inseefrlab/s3-operator/controllers/s3/factory.(*MinioS3Client).CreatePath
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.