From e029558886de5170626f366ed814122d90d7cfb0 Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Wed, 6 May 2026 21:58:15 +0000 Subject: [PATCH] fix: align deploy-e2e-headlamp.sh to kube-vip plugin - Fix comment referencing 'rook' -> 'kube-vip' - Add error handling for kubectl apply failure with cluster state dump - Align automountServiceAccountToken: true to match other plugins - Remove spurious sleep 2 before rollout status - Add cluster diagnostics before deployment (rook-plugin style) Co-Authored-By: Paperclip --- scripts/deploy-e2e-headlamp.sh | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/scripts/deploy-e2e-headlamp.sh b/scripts/deploy-e2e-headlamp.sh index 3d75c12..693b5e8 100755 --- a/scripts/deploy-e2e-headlamp.sh +++ b/scripts/deploy-e2e-headlamp.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # deploy-e2e-headlamp.sh # -# Deploys a stock Headlamp instance with the rook plugin loaded via +# Deploys a stock Headlamp instance with the kube-vip plugin loaded via # a ConfigMap volume mount. # # E2E resources are deployed to the `headlamp-dev` namespace. Nothing @@ -60,7 +60,7 @@ kubectl delete serviceaccount "${E2E_RELEASE}" -n "$E2E_NAMESPACE" --ignore-not- echo "" echo "Deploying Headlamp E2E instance..." -kubectl apply -f - <&2 + kubectl get all -n "$E2E_NAMESPACE" 2>&1 || true + kubectl get events -n "$E2E_NAMESPACE" --sort-by='.lastTimestamp' 2>&1 | tail -30 || true + exit 1 +fi echo "Waiting for rollout..." -sleep 2 kubectl rollout status "deployment/${E2E_RELEASE}" \ -n "$E2E_NAMESPACE" --timeout=120s -- 2.52.0