github.com/argoproj/argo-cd/v2@v2.10.9/resource_customizations/iam.cnrm.cloud.google.com/IAMServiceAccount/health.lua (about) 1 local hs = { 2 status = "Progressing", 3 message = "Update in progress" 4 } 5 if obj.status ~= nil then 6 if obj.status.conditions ~= nil then 7 for i, condition in ipairs(obj.status.conditions) do 8 9 -- Up To Date 10 if condition.reason == "UpToDate" and condition.status == "True" then 11 hs.status = "Healthy" 12 hs.message = condition.message 13 return hs 14 end 15 16 -- Update Failed 17 if condition.reason == "UpdateFailed" then 18 hs.status = "Degraded" 19 hs.message = condition.message 20 return hs 21 end 22 23 -- Dependency Not Found 24 if condition.reason == "DependencyNotFound" then 25 hs.status = "Degraded" 26 hs.message = condition.message 27 return hs 28 end 29 30 -- Dependency Not Ready 31 if condition.reason == "DependencyNotReady" then 32 hs.status = "Suspended" 33 hs.message = condition.message 34 return hs 35 end 36 end 37 end 38 end 39 return hs