github.com/argoproj/argo-cd/v2@v2.10.9/resource_customizations/argoproj.io/CronWorkflow/health.lua (about) 1 local hs = {} 2 3 if obj.status ~= nil then 4 if obj.status.conditions ~= nil then 5 for i, condition in pairs(obj.status.conditions) do 6 if condition.type == "SpecError" and condition.status == "True" then 7 hs.status = "Degraded" 8 hs.message = condition.message 9 return hs 10 elseif condition.type == "SubmissionError" and condition.status == "True" then 11 hs.status = "Degraded" 12 hs.message = condition.message 13 return hs 14 elseif condition.type == "Completed" and condition.status == "True" then 15 hs.status = "Healthy" 16 hs.message = condition.message 17 return hs 18 end 19 end 20 end 21 end 22 23 hs.status = "Healthy" 24 hs.message = "CronWorkflow is healthy." 25 26 return hs