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