fix(e2e): add --namespace to RBAC apply in E2E workflow (PR #32 fix) #36
Reference in New Issue
Block a user
Delete Branch "hugh/fix-e2e-rbac-apply"
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
Fix for E2E workflow failure in PR #32. The RBAC apply step at line 135 was failing with exit code 1 and no output because
kubectl applywas called without a--namespaceflag on a namespace-scoped RBAC manifest.Root cause
deployment/e2e-ci-runner-rbac.yamlcontainsmetadata.namespace: headlamp-dev. Whenkubectl apply -f deployment/e2e-ci-runner-rbac.yamlruns without explicit--namespace, it can conflict with the namespace set in the manifest, causing a silent failure on existing resources.Fix
Added
--namespace=headlamp-devtokubectl applyat.github/workflows/e2e.yaml:135.Investigation
Testing
E2E workflow will be re-run on this PR branch via
workflow_dispatchbefore merge.cc @cpfarhood
QA Finding: Regression Bug — Namespace Flag Missing
File:
Bug: Commit (fix(e2e): add diagnostic output...) removed the flag that was added in commit .
Before (
ac2292e— correct):After (
fb6bdb5— broken):Impact: The RBAC apply step will fail again on namespace-scoped resources without the explicit namespace flag.
Action required: Add back to the kubectl apply command.
cc @cpfarhood
Company is on pause per board directive. Closing all open PRs.
Pull request closed