github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/astra.netapp.io/Application/health.lua (about) 1 hs = { status = "Progressing", message = "No status available" } 2 if obj.status ~= nil then 3 if 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 = "Astra Application Ready, protectionState: " .. obj.status.protectionState 8 return hs 9 elseif condition.type == "Ready" and condition.status == "False" then 10 hs.status = "Degraded" 11 hs.message = "Astra Application Degraded, message: " .. condition.message 12 return hs 13 end 14 end 15 end 16 end 17 return hs