From 8338ac6030bce8a70977ef1a1de1f5864731aeaf Mon Sep 17 00:00:00 2001 From: Cesar Celis Hernandez Date: Sat, 14 Oct 2023 07:18:45 -0600 Subject: [PATCH] Create buckets upon tenant creation or after tenant creation (#1783) --- pkg/controller/main-controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/main-controller.go b/pkg/controller/main-controller.go index 432c3b34518..6ca10b6d7ac 100644 --- a/pkg/controller/main-controller.go +++ b/pkg/controller/main-controller.go @@ -1371,7 +1371,7 @@ func (c *Controller) syncHandler(key string) (Result, error) { } // Ensure we are only creating the bucket - if !tenant.Status.ProvisionedBuckets && len(tenant.Spec.Buckets) > 0 { + if len(tenant.Spec.Buckets) > 0 { if err := c.createBuckets(ctx, tenant, tenantConfiguration); err != nil { klog.V(2).Infof("Unable to create MinIO buckets: %v", err) c.RegisterEvent(ctx, tenant, corev1.EventTypeWarning, "BucketsCreatedFailed", fmt.Sprintf("Buckets creation failed: %s", err))