github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/capabilities.3scale.net/ApplicationAuth/health.lua (about)

     1  local hs = {}
     2  
     3  if obj.status ~= nil and obj.status.conditions ~= nil then
     4    for _, condition in ipairs(obj.status.conditions) do
     5      if condition.status ~= "True" then goto continue end
     6  
     7      if condition.type == "Ready" then
     8        hs.status = "Healthy"
     9        hs.message = "3scale ApplicationAuth is ready"
    10        return hs
    11      elseif condition.type == "Failed" then
    12        hs.status = "Degraded"
    13        hs.message = condition.message or "3scale ApplicationAuth failed"
    14        return hs
    15      end
    16  
    17      ::continue::
    18    end
    19  end
    20  
    21  hs.status = "Progressing"
    22  hs.message = "Waiting for 3scale ApplicationAuth status..."
    23  return hs