Skip to content

Commit

Permalink
reanme
Browse files Browse the repository at this point in the history
  • Loading branch information
guozhi.li committed Oct 30, 2023
1 parent 0b8381d commit 6adc72c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/controller/main-controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,7 @@ func (c *Controller) syncHandler(key string) (Result, error) {
if len(tenant.Spec.Buckets) > 0 {
if err := c.createBuckets(ctx, tenant, tenantConfiguration); err != nil {
switch {
case errors.Is(err, AllBucketsExist):
case errors.Is(err, ErrAllBucketsExist):
// do noting
default:
klog.V(2).Infof("Unable to create MinIO buckets: %v", err)
Expand Down
6 changes: 3 additions & 3 deletions pkg/controller/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ const (
)

var (
// AllBucketsExist - all bucket exist.
AllBucketsExist = errors.New("all buckets exist")
// ErrAllBucketsExist - all bucket exist.
ErrAllBucketsExist = errors.New("all buckets exist")
)

var serverCertsManager *xcerts.Manager
Expand Down Expand Up @@ -351,7 +351,7 @@ func (c *Controller) createBuckets(ctx context.Context, tenant *miniov2.Tenant,
return err
}
}
return AllBucketsExist
return ErrAllBucketsExist
}

// getOperatorDeploymentName Internal func returns the Operator deployment name from MINIO_OPERATOR_DEPLOYMENT_NAME ENV variable or the default name
Expand Down

0 comments on commit 6adc72c

Please sign in to comment.