mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
14 lines
373 B
Lua
14 lines
373 B
Lua
hs = { status = "Progressing", message = "No status available" }
|
|
if obj.spec ~= nil then
|
|
if obj.spec.enabled ~= nil then
|
|
if obj.spec.enabled == true then
|
|
hs.status = "Healthy"
|
|
hs.message = obj.kind .. " enabled"
|
|
elseif obj.spec.enabled == false then
|
|
hs.status = "Suspended"
|
|
hs.message = obj.kind .. " disabled"
|
|
end
|
|
end
|
|
end
|
|
return hs
|