github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/core.humio.com/HumioAction/health.lua (about) 1 hs = { 2 status = "Progressing", 3 message = "Update in progress" 4 } 5 if obj.status ~= nil then 6 if obj.status.state ~= nil then 7 if obj.status.state == "Exists" then 8 hs.status = "Healthy" 9 hs.message = "Component state: Exists." 10 end 11 if obj.status.state == "NotFound" then 12 hs.status = "Missing" 13 hs.message = "Component state: NotFound." 14 end 15 if obj.status.state == "ConfigError" then 16 hs.status = "Degraded" 17 hs.message = "Component state: ConfigError." 18 end 19 if obj.status.state == "Unknown" then 20 hs.status = "Unknown" 21 hs.message = "Component state: Unknown." 22 end 23 if obj.status.state == "Unknown" then 24 hs.status = "Unknown" 25 hs.message = "Component state: Unknown." 26 end 27 end 28 return hs 29 end 30 return hs