github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/grafana.integreatly.org/Grafana/health.lua (about) 1 2 -- if no status info available yet, assume progressing 3 if obj.status == nil or obj.status.stageStatus == nil then 4 return { 5 status = "Progressing", 6 message = "Waiting for Grafana status info", 7 } 8 end 9 10 -- if last stage failed, we are stuck here 11 if obj.status.stageStatus == "failed" then 12 return { 13 status = "Degraded", 14 message = "Failed at stage " .. obj.status.stage, 15 } 16 end 17 18 -- only if "complete" stage was successful, Grafana can be considered healthy 19 if obj.status.stage == "complete" and obj.status.stageStatus == "success" then 20 return { 21 status = "Healthy", 22 message = "", 23 } 24 end 25 26 -- no final status yet, assume progressing 27 return { 28 status = "Progressing", 29 message = obj.status.stage, 30 }