github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/k8s.mariadb.com/Grant/health.lua (about) 1 local health_status = {} 2 health_status.status = "Progressing" 3 health_status.message = "No status info available" 4 if obj.status ~= nil and obj.status.conditions ~= nil then 5 6 for i, condition in ipairs(obj.status.conditions) do 7 8 health_status.message = condition.message 9 10 if condition.type == "Ready" then 11 if condition.status == "True" then 12 health_status.status = "Healthy" 13 else 14 health_status.status = "Degraded" 15 end 16 return health_status 17 end 18 end 19 end 20 21 22 return health_status