Agent Mesh
Go a2aa2a-protocolagent-meshagentic-aiinferencemcpmeshmesh-networknetwork-securitynetworking-aip2p-network
ci: show canaries with zero available replicas as 0/N in the health report
Antonio Ojea62858bc3cc31
diff --git a/.github/workflows/testnet-health.yaml b/.github/workflows/testnet-health.yamlindex 10532b3f..c02f1e83 100644--- a/.github/workflows/testnet-health.yaml+++ b/.github/workflows/testnet-health.yaml@@ -110,11 +110,13 @@ jobs:unhealthy=""total=0- while read -r name ready want; do+ # availableReplicas is absent when it is 0, so the fields are+ # separated explicitly rather than by whitespace.+ while IFS='|' read -r name ready want; do[[ -z "${name}" ]] && continuetotal=$((total + 1))[[ "${ready:-0}" == "${want}" ]] || unhealthy="${unhealthy} ${name}(${ready:-0}/${want})"- done < <(kubectl get deployments -n "${CNS}" -o jsonpath='{range .items[*]}{.metadata.name} {.status.availableReplicas} {.spec.replicas}{"\n"}{end}' 2>/dev/null)+ done < <(kubectl get deployments -n "${CNS}" -o jsonpath='{range .items[*]}{.metadata.name}|{.status.availableReplicas}|{.spec.replicas}{"\n"}{end}' 2>/dev/null)if [[ "${total}" -gt 0 && -z "${unhealthy}" ]]; thenok "Canaries" "${total} deployments fully available"else