github.com/argoproj/argo-cd/v2@v2.10.9/resource_customizations/argoproj.io/EventBus/health.lua (about)

     1  local hs={ status = "Progressing", message = "Waiting for initialization" }
     2  
     3  if obj.status ~= nil then
     4    if obj.status.conditions ~= nil then
     5      for _, condition in ipairs(obj.status.conditions) do
     6        if condition.type == "Deployed" and condition.status == "False" then
     7          hs.status = "Degraded"
     8          hs.message = condition.message or condition.reason
     9          return hs
    10        end
    11        if condition.type == "Deployed" and condition.status == "True" then
    12          hs.status = "Healthy"
    13          hs.message = condition.message or condition.reason
    14          return hs
    15        end
    16      end
    17    end
    18  end
    19  
    20  
    21  return hs