From 3ca63c882e0f5f65deb38d7a3eabe4c7413419a9 Mon Sep 17 00:00:00 2001 From: Kuangyu Jing Date: Thu, 17 Jul 2025 02:04:52 +0900 Subject: [PATCH] Remove ArgoCD health values example file --- examples/argocd-health-values.yaml | 74 ------------------------------ 1 file changed, 74 deletions(-) delete mode 100644 examples/argocd-health-values.yaml diff --git a/examples/argocd-health-values.yaml b/examples/argocd-health-values.yaml deleted file mode 100644 index d948d2a0..00000000 --- a/examples/argocd-health-values.yaml +++ /dev/null @@ -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 \ No newline at end of file