fix: k8s-metrics non-fatal resourcequota failure keeps pod metrics alive

This commit is contained in:
2026-04-22 02:00:38 +02:00
parent e868eb29aa
commit 0c82f00884

View File

@@ -55,7 +55,7 @@ fmt_mem() {
pods_json=$(kubectl get pods -n "$NS" -o json 2>/dev/null) || exit 1
top_output=$(kubectl top pods -n "$NS" --no-headers 2>/dev/null) || top_output=""
quota_json=$(kubectl get resourcequota -n "$NS" -o json 2>/dev/null) || exit 1
quota_json=$(kubectl get resourcequota -n "$NS" -o json 2>/dev/null) || quota_json='{"items":[]}'
# ── Build podName → app map ──────────────────────────────────────────────────