mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-30 14:56:59 +00:00
* feat(health): Add healtchcheck for acid.zalan.do/postgresql Signed-off-by: Remo Zellmer <[email protected]> * feat(health): Add healthcheck for grafana.integreatly.org/Grafana and GrafanaDatasource Signed-off-by: Remo Zellmer <[email protected]> * feat(health): Add healthcheck for k8s.keycloak.org/Keycloak Signed-off-by: Remo Zellmer <[email protected]> * feat(health): Add healthcheck for solr.apache.org/SolrCloud Signed-off-by: Remo Zellmer <[email protected]> --------- Signed-off-by: Remo Zellmer <[email protected]>
20 lines
415 B
Lua
20 lines
415 B
Lua
|
|
-- if UID not yet created, we are progressing
|
|
if obj.status == nil or obj.status.uid == "" then
|
|
return {
|
|
status = "Progressing",
|
|
message = "",
|
|
}
|
|
end
|
|
|
|
-- NoMatchingInstances distinguishes if we are healthy or degraded
|
|
if obj.status.NoMatchingInstances then
|
|
return {
|
|
status = "Degraded",
|
|
message = "can't find matching grafana instance",
|
|
}
|
|
end
|
|
return {
|
|
status = "Healthy",
|
|
message = "",
|
|
} |