Skip to content

Commit

Permalink
Create buckets upon tenant creation or after tenant creation (#1783)
Browse files Browse the repository at this point in the history
  • Loading branch information
cniackz authored Oct 14, 2023
1 parent 1c2d445 commit 8338ac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/main-controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 8338ac6

Please sign in to comment.