mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-22 01:17:16 +00:00
* chore(action): add newlines at eof Signed-off-by: Josh Soref <jsoref@gmail.com> * chore(action): fix whitespace indentation Signed-off-by: Josh Soref <jsoref@gmail.com> * chore(action): use local annotations Signed-off-by: Josh Soref <jsoref@gmail.com> --------- Signed-off-by: Josh Soref <jsoref@gmail.com>
23 lines
615 B
Lua
23 lines
615 B
Lua
local hs = {}
|
|
|
|
if obj.status ~= nil then
|
|
if obj.status.domainStatus ~= nil then
|
|
for i, domainStatus in ipairs(obj.status.domainStatus) do
|
|
if domainStatus.status == "FailedNotVisible" then
|
|
hs.status = "Degraded"
|
|
hs.message = "At least one certificate has failed to be provisioned"
|
|
return hs
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
if obj.status ~= nil and obj.status.certificateStatus == "Active" then
|
|
hs.status = "Healthy"
|
|
hs.message = "All certificates are active"
|
|
return hs
|
|
end
|
|
|
|
hs.status = "Progressing"
|
|
hs.message = "At least one certificate is still being provisioned"
|
|
return hs
|