Skip to content

Commit

Permalink
requeue tenant health check
Browse files Browse the repository at this point in the history
Signed-off-by: pjuarezd <pjuarezd@users.noreply.github.com>
  • Loading branch information
pjuarezd committed Jun 6, 2024
1 parent 571aa1a commit 3281e38
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/controller/monitoring.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ func (c *Controller) updateHealthStatusForTenant(tenant *miniov2.Tenant) error {
klog.Infof("'%s/%s' Can't update tenant status with tiers: %v", tenant.Namespace, tenant.Name, err)
}
}
// Add tenant to the health check queue again until is green again
if tenant.Status.HealthStatus != miniov2.HealthStatusGreen {
key := fmt.Sprintf("%s/%s", tenant.GetNamespace(), tenant.Name)
c.healthCheckQueue.Add(key)
}

return nil
}
Expand Down

0 comments on commit 3281e38

Please sign in to comment.