Skip to content

Commit

Permalink
fix: empty tenant log
Browse files Browse the repository at this point in the history
fix: empty tenant log
  • Loading branch information
jiuker committed Sep 24, 2024
1 parent 868ae2d commit 09cd171
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 09cd171

Please sign in to comment.