27 lines
886 B
YAML
27 lines
886 B
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: argocd-cm
|
|
namespace: argocd
|
|
data:
|
|
resource.customizations.health.actions.summerwind.dev_Runner: |
|
|
hs = {}
|
|
if obj.status ~= nil then
|
|
if obj.status.ready == true and obj.status.phase == "Running" then
|
|
hs.status = "Healthy"
|
|
hs.message = "Runner is ready and running"
|
|
elseif obj.status.phase == "Pending" or obj.status.phase == "Created" then
|
|
hs.status = "Progressing"
|
|
hs.message = "Runner is starting up"
|
|
elseif obj.status.phase == "Failed" then
|
|
hs.status = "Degraded"
|
|
hs.message = obj.status.message or "Runner has failed"
|
|
else
|
|
hs.status = "Progressing"
|
|
hs.message = "Runner status: " .. (obj.status.phase or "Unknown")
|
|
end
|
|
else
|
|
hs.status = "Progressing"
|
|
hs.message = "Waiting for runner status"
|
|
end
|
|
return hs |