mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
Signed-off-by: odubajDT <[email protected]> Co-authored-by: Michael Crenshaw <[email protected]>
14 lines
371 B
Lua
14 lines
371 B
Lua
local hs = {}
|
|
if obj.status.status == "Succeeded" then
|
|
hs.status = "Healthy"
|
|
hs.message = "KeptnWorkloadVersion is healthy"
|
|
return hs
|
|
end
|
|
if obj.status.status == "Failed" then
|
|
hs.status = "Degraded"
|
|
hs.message = "KeptnWorkloadVersion is degraded"
|
|
return hs
|
|
end
|
|
hs.status = "Progressing"
|
|
hs.message = "KeptnWorkloadVersion is progressing"
|
|
return hs |