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>
24 lines
834 B
Lua
24 lines
834 B
Lua
local health_status = {}
|
|
|
|
if obj.status ~= nil and obj.status.reconciliationStatus ~= nil then
|
|
if obj.status.reconciliationStatus.success or obj.status.reconciliationStatus.state == "DEPLOYED" then
|
|
health_status.status = "Healthy"
|
|
return health_status
|
|
end
|
|
|
|
if obj.status.jobManagerDeploymentStatus == "DEPLOYED_NOT_READY" or obj.status.jobManagerDeploymentStatus == "DEPLOYING" then
|
|
health_status.status = "Progressing"
|
|
health_status.message = "Waiting for deploying"
|
|
return health_status
|
|
end
|
|
|
|
if obj.status.jobManagerDeploymentStatus == "ERROR" then
|
|
health_status.status = "Degraded"
|
|
health_status.message = obj.status.reconciliationStatus.error
|
|
return health_status
|
|
end
|
|
end
|
|
|
|
health_status.status = "Progressing"
|
|
health_status.message = "Waiting for Flink operator"
|
|
return health_status
|