fix(e2e): disable automount SA token to avoid kubelet fetch race

Kubelet tries to fetch SA token immediately after deployment creates the pod,
but the SA may not be propagated yet. Setting automountServiceAccountToken: false
avoids this race. The SA token is not needed since E2E tests authenticate
via HEADLAMP_TOKEN passed as env var.
This commit is contained in:
2026-05-05 18:47:01 +00:00
committed by Hugh Hackman [agent]
parent db0624f4a5
commit 1fe9a6264a
+2 -1
View File
@@ -97,7 +97,7 @@ spec:
app.kubernetes.io/instance: ${E2E_RELEASE}
spec:
serviceAccountName: ${E2E_RELEASE}
automountServiceAccountToken: true
automountServiceAccountToken: false
securityContext: {}
containers:
- name: headlamp
@@ -159,6 +159,7 @@ spec:
EOF
echo "Waiting for rollout..."
sleep 2
kubectl rollout status "deployment/${E2E_RELEASE}" \
-n "$E2E_NAMESPACE" --timeout=120s