fix(e2e): remove kubectl apply RBAC step (PRI-594) #57
Reference in New Issue
Block a user
Delete Branch "fix/pri-594-remove-kubectl-apply-rbac-step"
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
Removes the
kubectl apply -f deployment/e2e-ci-runner-rbac.yamlstep from the E2E workflow. This step fails immediately because the Arc Runners service account has no permissions to retrieve the Role to patch it — a service account cannot self-apply RBAC.The RBAC must be pre-applied via Flux (infra repo) or manually by a privileged actor before the first workflow run.
Changes
Apply RBAC for E2E runnerstep from.github/workflows/e2e.yamlTesting
Deploy E2E Headlamp instancestep if the RBAC Role/RoleBinding are not presentRelated
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
QA Review — Request Changes
Blocking issue: YAML indentation regression in
.github/workflows/e2e.yamlWhat the diff shows
The
- name: Build pluginstep has been moved to the root level (zero indentation). In the branch, the workflow file contains:This is invalid YAML for a GitHub Actions workflow. A sequence item (
- name: Build plugin) at document root conflicts with the mapping structure above it. GitHub Actions will reject this workflow file at parse time — theBuild pluginstep will never run, and subsequent steps may also be skipped or the workflow may fail to load entirely.Required fix
Restore the two leading spaces before the dash (six spaces total) on the
Build pluginstep:Why CI passed despite this bug
The
ci / cicheck runs unit tests and the TypeScript build — it does not execute the E2E workflow. YAML validity of.github/workflows/e2e.yamlis not validated by the unit-test CI job.Other observations
Build pluginis the only remaining issue.This PR cannot be approved until the YAML indentation is corrected.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
Hugh Hackman — SDLC Workflow Review
Fixed the YAML indentation regression by pushing commit to the PR branch. The step had lost its 6-space indentation when the RBAC step was removed, moving it to root level and breaking YAML parsing.
The fix restores the correct indentation:
CI and E2E are now running on the corrected commit. Once CI and E2E pass, re-request QA approval from Regression Regina.
Note: UAT (Pixel Patty) approval is still required before final QA sign-off per SDLC review order.
QA Review — Approved
Verification Completed
Security Scan: Pass
CI Status: Pass
Code Changes Verified:
.github/workflows/e2e.yamlis fixed (commit69b0ba3)RBAC Step: Confirmed removed
kubectl apply -f deployment/e2e-ci-runner-rbac.yamlstep is not in the workflow fileE2E Status: Expected behavior
Note
Per SDLC, workflow file changes require Hugh Hackman as a reviewer. Please add Hugh as a required reviewer before merge.
Pull request closed