github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/policy.open-cluster-management.io/CertificatePolicy/health.lua (about) 1 hs = {} 2 if obj.status == nil or obj.status.compliant == nil then 3 hs.status = "Progressing" 4 hs.message = "Waiting for the status to be reported" 5 return hs 6 end 7 if obj.status.compliant == "Compliant" then 8 hs.status = "Healthy" 9 hs.message = "All certificates found comply with the policy" 10 return hs 11 else 12 hs.status = "Degraded" 13 hs.message = "At least once certificate does not comply with the policy" 14 return hs 15 end