mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-28 12:27:18 +00:00
* feat: add custom resource health checks for trident.netapp.io/TridentOrchestrator and trident.netapp.io/TridentBackendConfig Signed-off-by: Balazs Zachar <zachar.balazs@gmail.com> * feat: extend TridentOrchestrator check with degraded state (based on official documentation) Signed-off-by: Balazs Zachar <zachar.balazs@gmail.com>
16 lines
422 B
Lua
16 lines
422 B
Lua
hs = {}
|
|
if obj.status ~= nil then
|
|
if obj.status.phase == "Bound" and obj.status.lastOperationStatus == "Success" then
|
|
hs.status = "Healthy"
|
|
hs.message = obj.status.message
|
|
return hs
|
|
end
|
|
if obj.status.lastOperationStatus == "Failed" then
|
|
hs.status = "Degraded"
|
|
hs.message = obj.status.message
|
|
return hs
|
|
end
|
|
end
|
|
hs.status = "Progressing"
|
|
hs.message = "Waiting for backend creation"
|
|
return hs
|