fix(e2e): remove Service delete to fix Endpoints UID race causing ERR_NAME_NOT_RESOLVED #59

Merged
privilegedescalation-engineer[bot] merged 2 commits from hugh/fix-e2e-service-endpoints-race-pri-609 into main 2026-05-05 05:10:33 +00:00

2 Commits

Author SHA1 Message Date
Chris Farhood f1500ed326 fix(e2e): update namespace to headlamp-dev where RBAC is configured
The Service delete fix on this branch is correct, but the E2E workflow
and scripts still defaulted to privilegedescalation-dev where the
arc-runners service account has no permissions. This caused RBAC
Forbidden errors instead of the original ERR_NAME_NOT_RESOLVED.

Changed all defaults to headlamp-dev, matching the successful
gandalf/rename-ns-headlamp-dev branch.
2026-05-05 03:50:32 +00:00
Chris Farhood e80673dc1c fix(e2e): remove Service delete to fix Endpoints UID race causing ERR_NAME_NOT_RESOLVED
Deleting the Service between test runs causes a FailedToUpdateEndpoint
error (UID precondition failure) when the old Endpoints are garbage
collected and the new Service tries to create fresh Endpoints. This
leaves the service unreachable by DNS (ERR_NAME_NOT_RESOLVED).

Fix: stop deleting the Service. kubectl apply upserts it in-place,
so the existing Endpoints object persists. The new pod IP is added
automatically when the fresh Deployment pod becomes ready.

Closes PRI-609

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-05 03:10:30 +00:00