github.com/argoproj/argo-cd@v1.8.7/resource_customizations/cert-manager.io/Certificate/health.lua (about) 1 hs = {} 2 if obj.status ~= nil then 3 if obj.status.conditions ~= nil then 4 for i, condition in ipairs(obj.status.conditions) do 5 if condition.type == "Ready" and condition.status == "False" then 6 hs.status = "Degraded" 7 hs.message = condition.message 8 return hs 9 end 10 if condition.type == "Ready" and condition.status == "True" then 11 hs.status = "Healthy" 12 hs.message = condition.message 13 return hs 14 end 15 end 16 end 17 end 18 19 hs.status = "Progressing" 20 hs.message = "Waiting for certificate" 21 return hs