Skip to content

Commit

Permalink
fix: incorrect error log Waiting for MinIO to be ready: %!s(<nil>) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jiuker authored Oct 25, 2024
1 parent 2c867b2 commit 0d8f857
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 @@ -1348,7 +1348,7 @@ func (c *Controller) syncHandler(key string) (Result, error) {
// Stay in this state until minio is ready
if tenant.Status.HealthStatus != miniov2.HealthStatusGreen {
c.updateTenantStatus(ctx, tenant, StatusWaitingMinIOIsHealthy, 0)
c.recorder.Event(tenant, corev1.EventTypeWarning, WaitingMinIOIsHealthyReason, fmt.Sprintf("Waiting for MinIO to be ready: %s", err))
c.recorder.Event(tenant, corev1.EventTypeWarning, WaitingMinIOIsHealthyReason, "Waiting for MinIO to be ready")
// retry after 5sec
return WrapResult(Result{RequeueAfter: time.Second * 5}, nil)
}
Expand Down

0 comments on commit 0d8f857

Please sign in to comment.