Compare commits

..

1 Commits

Author SHA1 Message Date
Chris Farhood 9612e8c2c1 fix: align volume name to headlamp-kube-vip-plugin in deploy-e2e-headlamp.sh
The volume name was 'rook-plugin' but the ConfigMap is
'headlamp-kube-vip-plugin', causing mount failures. Align both
volumeMounts[*].name and volumes[*].name to 'headlamp-kube-vip-plugin'.
2026-05-06 22:22:13 +00:00
+4 -9
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# deploy-e2e-headlamp.sh
#
# Deploys a stock Headlamp instance with the kube-vip plugin loaded via
# Deploys a stock Headlamp instance with the rook 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..."
if ! kubectl apply -f - <<EOF
kubectl apply -f - <<EOF
apiVersion: v1
kind: ServiceAccount
metadata:
@@ -88,7 +88,7 @@ spec:
app.kubernetes.io/instance: ${E2E_RELEASE}
spec:
serviceAccountName: ${E2E_RELEASE}
automountServiceAccountToken: true
automountServiceAccountToken: false
securityContext: {}
containers:
- name: headlamp
@@ -148,14 +148,9 @@ spec:
targetPort: http
protocol: TCP
EOF
then
echo "ERROR: kubectl apply failed. Dumping cluster state..." >&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