Skip to content

Commit

Permalink
fix: empty tenant log (#2324)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiuker authored Sep 25, 2024
1 parent 868ae2d commit 59398ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/controller/monitoring.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,10 @@ func (c *Controller) updateHealthStatusForTenant(tenant *miniov2.Tenant) (*minio
}

// partial status update, since the storage info might take a while
if tenant, err = c.updatePoolStatus(context.Background(), tenant); err != nil {
if tenantUpdate, err := c.updatePoolStatus(context.Background(), tenant); err != nil {
klog.Infof("'%s/%s' Can't update tenant status: %v", tenant.Namespace, tenant.Name, err)
} else {
tenant = tenantUpdate
}

srvInfoCtx, cancel := context.WithTimeout(context.Background(), 120*time.Second)
Expand Down

0 comments on commit 59398ea

Please sign in to comment.