argo-cd/resource_customizations/platform.confluent.io/KsqlDB/health.lua
Josh Soref 491b3898ac
chore(action): minor lua changes (#15580)
* 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>
2023-09-21 09:20:42 -04:00

19 lines
429 B
Lua

local hs = {}
if obj.status ~= nil then
if obj.status.phase ~= nil then
if obj.status.phase == "RUNNING" then
hs.status = "Healthy"
hs.message = "KsqlDB running"
return hs
end
if obj.status.phase == "PROVISIONING" then
hs.status = "Progressing"
hs.message = "KsqlDB provisioning"
return hs
end
end
end
hs.status = "Progressing"
hs.message = "Waiting for KsqlDB"
return hs