fix(e2e): keep ServiceAccount across deploy cycles to avoid token fetch race #65
Reference in New Issue
Block a user
Delete Branch "gandalf/fix-e2e-service-account-timing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary\n- Removes
kubectl delete serviceaccountfrom deploy-e2e-headlamp.sh\n- Replaces with idempotentkubectl create --dry-run | kubectl apply\n- Fixes race condition where pod fails to start because SA token isn't ready\n\n## Root cause\nThe deploy script deleted serviceaccount/headlamp-e2e before recreating it. New pods tried to mount the token before it was available, causing:\n\nWarning FailedMount: failed to fetch token: serviceaccounts "headlamp-e2e" not found\n\n\ncc @cpfarhoodYour free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
Closing: Only dual-approval check ran (CI/E2E never triggered). The ServiceAccount timing fix may still be needed but should be re-submitted against current main after #68 merges, to validate with working E2E.
Pull request closed