Skip to content

Commit

Permalink
fix: incorrect error log
Browse files Browse the repository at this point in the history
fix: incorrect error log
  • Loading branch information
jiuker committed Oct 18, 2024
1 parent 54a9f26 commit 745402f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/controller/controller_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"syscall"

Check failure on line 1 in pkg/controller/controller_test.go

View workflow job for this annotation

GitHub Actions / goreleaser-operator

expected 'package', found "syscall"

Check failure on line 1 in pkg/controller/controller_test.go

View workflow job for this annotation

GitHub Actions / govet (1.22.x, ubuntu-latest)

expected 'package', found "syscall"

Check failure on line 1 in pkg/controller/controller_test.go

View workflow job for this annotation

GitHub Actions / Shellcheck (1.22.x)

expected 'package', found "syscall"

Check failure on line 1 in pkg/controller/controller_test.go

View workflow job for this annotation

GitHub Actions / Check for vulnerable dependencies (1.22.x)

expected 'package', found "syscall"
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, fmt.Sprintf("Waiting for MinIO(%s/%s) to be ready", tenant.Namespace, tenant.Name))
// retry after 5sec
return WrapResult(Result{RequeueAfter: time.Second * 5}, nil)
}
Expand Down

0 comments on commit 745402f

Please sign in to comment.