github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/karpenter.k8s.aws/EC2NodeClass/health.lua (about) 1 local hs = {} 2 if obj.status ~= nil and obj.status.conditions ~= nil then 3 for i, condition in ipairs(obj.status.conditions) do 4 if condition.type == "Ready" then 5 if condition.status == "False" then 6 hs.status = "Degraded" 7 hs.message = condition.message 8 return hs 9 elseif condition.status == "True" then 10 hs.status = "Healthy" 11 hs.message = "EC2NodeClass is ready" 12 return hs 13 end 14 end 15 end 16 end 17 hs.status = "Progressing" 18 hs.message = "Waiting for EC2NodeClass to be ready" 19 return hs