github.com/argoproj/argo-cd/v2@v2.10.9/resource_customizations/kubernetes-client.io/ExternalSecret/health.lua (about) 1 local health_status = {} 2 if obj.status ~= nil then 3 if obj.status.status == "SUCCESS" then 4 health_status.status = "Healthy" 5 health_status.message = "Fetched ExternalSecret." 6 elseif obj.status.status:find('^ERROR') ~= nil then 7 health_status.status = "Degraded" 8 health_status.message = obj.status.status:gsub("ERROR, ", "") 9 else 10 health_status.status = "Progressing" 11 health_status.message = "Waiting for ExternalSecret." 12 end 13 return health_status 14 end 15 health_status.status = "Progressing" 16 health_status.message = "Waiting for ExternalSecret." 17 return health_status