fix: instance remove (#4602)

This commit is contained in:
Livio Spring
2022-10-26 13:06:48 +00:00
committed by GitHub
parent 001636f2b4
commit d721f725fd
89 changed files with 655 additions and 121 deletions
+5
View File
@@ -136,6 +136,11 @@ func (m *Minio) RemoveObjects(ctx context.Context, instanceID, resourceOwner str
return g.Wait()
}
func (m *Minio) RemoveInstanceObjects(ctx context.Context, instanceID string) error {
bucketName := m.prefixBucketName(instanceID)
return m.Client.RemoveBucket(ctx, bucketName)
}
func (m *Minio) createBucket(ctx context.Context, name, location string) error {
if location == "" {
location = m.Location