github.com/argoproj/argo-cd/v2@v2.10.9/resource_customizations/external-secrets.io/ClusterExternalSecret/health.lua (about) 1 local hs = {} 2 if obj.status ~= nil then 3 if obj.status.conditions ~= nil then 4 -- For ClusterExternalSecret, new statuses are appended to the end of the list 5 local lastStatus = obj.status.conditions[#obj.status.conditions] 6 if lastStatus.type == "Ready" and lastStatus.status == "True" then 7 hs.status = "Healthy" 8 hs.message = lastStatus.message 9 return hs 10 end 11 if lastStatus.type == "PartiallyReady" and lastStatus.status == "True" then 12 hs.status = "Degraded" 13 hs.message = lastStatus.message 14 return hs 15 end 16 if lastStatus.type == "NotReady" and lastStatus.status == "True" then 17 hs.status = "Degraded" 18 hs.message = lastStatus.message 19 return hs 20 end 21 end 22 end 23 hs.status = "Progressing" 24 hs.message = "Waiting for ClusterExternalSecret" 25 return hs