github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/metrics.keptn.sh/KeptnMetric/health.lua (about) 1 local hs = {} 2 if (obj.status.errMsg == nil or obj.status.errMsg == "") and obj.status.value ~= nil then 3 hs.status = "Healthy" 4 hs.message = "KeptnMetric is healthy" 5 return hs 6 end 7 if obj.status.errMsg ~= nil and obj.status.errMsg ~= "" then 8 hs.status = "Degraded" 9 hs.message = "KeptnMetric is degraded" 10 return hs 11 end 12 hs.status = "Progressing" 13 hs.message = "KeptnMetric is progressing" 14 return hs