Skip to content

Commit c8b5fe3

Browse files
scotwellsclaude
andcommitted
ci: capture pod events + cert-manager health in e2e diagnostics
The upstream manager hangs in ContainerCreating waiting on a secret; the prior diagnostics only dumped pod lists and container logs, which are empty for a container that never started. Add describe output for not-ready pods and cert-manager restart/issuance state so the mount failure is visible from the run log. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JbCy8vy66RdNYzGSgqH6P6
1 parent e892945 commit c8b5fe3

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/test-e2e-federated.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,22 @@ jobs:
9191
echo "::group::downstream pods"
9292
kubectl --context kind-nso-downstream get pods -A -o wide
9393
echo "::endgroup::"
94+
echo "::group::not-ready pods — describe (both clusters)"
95+
for ctx in kind-nso-upstream kind-nso-downstream; do
96+
echo "### $ctx"
97+
kubectl --context "$ctx" get pods -A \
98+
--field-selector=status.phase!=Running,status.phase!=Succeeded -o name | while read -r p; do
99+
ns=$(kubectl --context "$ctx" get "$p" -A -o jsonpath='{..metadata.namespace}' 2>/dev/null)
100+
kubectl --context "$ctx" -n "$ns" describe "${p#*/}" 2>/dev/null | tail -30
101+
done
102+
done
103+
echo "::endgroup::"
104+
echo "::group::cert-manager health (upstream) — restarts + issuance"
105+
kubectl --context kind-nso-upstream -n cert-manager get pods -o wide
106+
kubectl --context kind-nso-upstream -n cert-manager \
107+
logs -l app.kubernetes.io/name=cert-manager --tail=80 --previous 2>/dev/null || true
108+
kubectl --context kind-nso-upstream get certificate,certificaterequest,issuer,clusterissuer -A
109+
echo "::endgroup::"
94110
echo "::group::karmada member clusters"
95111
KCFG=/tmp/karmada-nso-upstream/karmada-apiserver.config
96112
kubectl --kubeconfig "$KCFG" --context karmada-apiserver get clusters -o wide

0 commit comments

Comments
 (0)