Remove ArgoCD health values example file
This commit is contained in:
parent
63e129f46f
commit
3ca63c882e
|
|
@ -1,74 +0,0 @@
|
|||
# Example values for configuring ArgoCD health checks when using Helm
|
||||
|
||||
# If you're deploying ArgoCD using the official Helm chart,
|
||||
# you can add these health checks to your values.yaml:
|
||||
|
||||
server:
|
||||
config:
|
||||
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
|
||||
|
||||
resource.customizations.health.actions.github.com_EphemeralRunner: |
|
||||
hs = {}
|
||||
if obj.status ~= nil then
|
||||
if obj.status.phase == "Running" then
|
||||
hs.status = "Healthy"
|
||||
hs.message = "EphemeralRunner is running"
|
||||
elseif obj.status.phase == "Pending" then
|
||||
hs.status = "Progressing"
|
||||
hs.message = "EphemeralRunner is pending"
|
||||
elseif obj.status.phase == "Failed" then
|
||||
hs.status = "Degraded"
|
||||
hs.message = obj.status.message or "EphemeralRunner has failed"
|
||||
elseif obj.status.phase == "Finished" then
|
||||
hs.status = "Healthy"
|
||||
hs.message = "EphemeralRunner has finished"
|
||||
else
|
||||
hs.status = "Progressing"
|
||||
hs.message = "EphemeralRunner status: " .. (obj.status.phase or "Unknown")
|
||||
end
|
||||
else
|
||||
hs.status = "Progressing"
|
||||
hs.message = "Waiting for EphemeralRunner status"
|
||||
end
|
||||
return hs
|
||||
|
||||
resource.customizations.health.actions.github.com_AutoScalingRunnerSet: |
|
||||
hs = {}
|
||||
if obj.status ~= nil then
|
||||
if obj.status.currentReplicas ~= nil and obj.status.desiredReplicas ~= nil then
|
||||
if obj.status.currentReplicas == obj.status.desiredReplicas then
|
||||
hs.status = "Healthy"
|
||||
hs.message = string.format("Runners: %d/%d", obj.status.currentReplicas, obj.status.desiredReplicas)
|
||||
else
|
||||
hs.status = "Progressing"
|
||||
hs.message = string.format("Scaling runners: %d/%d", obj.status.currentReplicas, obj.status.desiredReplicas)
|
||||
end
|
||||
else
|
||||
hs.status = "Progressing"
|
||||
hs.message = "Initializing runner set"
|
||||
end
|
||||
else
|
||||
hs.status = "Progressing"
|
||||
hs.message = "Waiting for status"
|
||||
end
|
||||
return hs
|
||||
Loading…
Reference in New Issue