fix: ignore stale install hook pods in health check
Deploy Cluster / Terraform (push) Successful in 29s
Deploy Cluster / Ansible (push) Has been cancelled

This commit is contained in:
2026-04-25 03:41:00 +00:00
parent 757d88ed52
commit 08123457f1
+2
View File
@@ -630,6 +630,8 @@ jobs:
kubectl get pods -A --no-headers \ kubectl get pods -A --no-headers \
| grep -Ev "[[:space:]](Running|Completed)[[:space:]]" \ | grep -Ev "[[:space:]](Running|Completed)[[:space:]]" \
| grep -Ev "^cattle-system[[:space:]]+helm-operation-" \ | grep -Ev "^cattle-system[[:space:]]+helm-operation-" \
| grep -Ev "^cattle-resources-system[[:space:]]+rancher-backup-patch-sa-" \
| grep -Ev "^kube-system[[:space:]]+helm-install-" \
| tee /tmp/unhealthy-pods || true | tee /tmp/unhealthy-pods || true
test ! -s /tmp/unhealthy-pods test ! -s /tmp/unhealthy-pods
kubectl -n kube-system get pods -o wide kubectl -n kube-system get pods -o wide