github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/capabilities.3scale.net/ActiveDoc/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.type == "Ready" and condition.status == "True" then 6 hs.status = "Healthy" 7 hs.message = "3scale ActiveDoc is ready" 8 return hs 9 elseif condition.type == "Invalid" and condition.status == "True" then 10 hs.status = "Degraded" 11 hs.message = condition.message or "3scale ActiveDoc configuration is invalid" 12 return hs 13 elseif condition.type == "Orphan" and condition.status == "True" then 14 hs.status = "Degraded" 15 hs.message = condition.message or "3scale ActiveDoc references non-existing resources" 16 return hs 17 elseif condition.type == "Failed" and condition.status == "True" then 18 hs.status = "Degraded" 19 hs.message = condition.message or "3scale ActiveDoc synchronization failed" 20 return hs 21 end 22 end 23 end 24 25 hs.status = "Progressing" 26 hs.message = "Waiting for 3scale ActiveDoc status..." 27 return hs