github.com/argoproj/argo-cd@v1.8.7/resource_customizations/argoproj.io/Experiment/health.lua (about) 1 hs = {} 2 if obj.status ~= nil then 3 if obj.status.phase == "Pending" then 4 hs.status = "Progressing" 5 hs.message = "Experiment is pending" 6 end 7 if obj.status.phase == "Running" then 8 hs.status = "Progressing" 9 hs.message = "Experiment is running" 10 end 11 if obj.status.phase == "Successful" then 12 hs.status = "Healthy" 13 hs.message = "Experiment is successful" 14 end 15 if obj.status.phase == "Failed" then 16 hs.status = "Degraded" 17 hs.message = "Experiment has failed" 18 end 19 if obj.status.phase == "Error" then 20 hs.status = "Degraded" 21 hs.message = "Experiment had an error" 22 end 23 return hs 24 end 25 26 hs.status = "Progressing" 27 hs.message = "Waiting for experiment to finish: status has not been reconciled." 28 return hs