From dbe6688eae7d8d4b99e4ddfa7eeb2f506124d712 Mon Sep 17 00:00:00 2001 From: zhijian Date: Mon, 23 Dec 2024 14:39:56 +0800 Subject: [PATCH] object/minio: support for MinIO storage class (#5413) --- pkg/object/minio.go | 4 ---- pkg/object/object_storage_test.go | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/object/minio.go b/pkg/object/minio.go index 97af29b36249..7852e02edc5e 100644 --- a/pkg/object/minio.go +++ b/pkg/object/minio.go @@ -39,10 +39,6 @@ func (m *minio) String() string { return fmt.Sprintf("minio://%s/%s/", *m.s3client.ses.Config.Endpoint, m.s3client.bucket) } -func (m *minio) SetStorageClass(_ string) error { - return notSupported -} - func (m *minio) Limits() Limits { return Limits{ IsSupportMultipartUpload: true, diff --git a/pkg/object/object_storage_test.go b/pkg/object/object_storage_test.go index af3c1d79cb82..e12a72deaa50 100644 --- a/pkg/object/object_storage_test.go +++ b/pkg/object/object_storage_test.go @@ -91,6 +91,8 @@ func setStorageClass(o ObjectStorage) string { sc = string(obs.StorageClassStandard) case *bosclient: sc = api.STORAGE_CLASS_STANDARD + case *minio: + sc = "REDUCED_REDUNDANCY" case *scw: sc = "ONEZONE_IA" // STANDARD, ONEZONE_IA, GLACIER }