mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-20 01:28:45 +01: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>
21 lines
544 B
Lua
21 lines
544 B
Lua
local hs = {
|
|
status = "Progressing",
|
|
message = "Waiting for stack to be installed"
|
|
}
|
|
if obj.status ~= nil then
|
|
if obj.status.conditionedStatus ~= nil then
|
|
if obj.status.conditionedStatus.conditions ~= nil then
|
|
for i, condition in ipairs(obj.status.conditionedStatus.conditions) do
|
|
if condition.type == "Ready" then
|
|
hs.message = condition.reason
|
|
if condition.status == "True" then
|
|
hs.status = "Healthy"
|
|
return hs
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
return hs
|