fix e2e: add comprehensive RBAC checks and deployment diagnostics #28
Reference in New Issue
Block a user
Delete Branch "hugh/fix-e2e-deploy-script"
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 E2E deployment script to properly diagnose RBAC issues and provide actionable debug output.
Changes
delete configmaps) before attempting deployment. Missing permissions fail fast with a clear error message naming the exact missing permission.kubectl rollout statusfailure or service unreachability, script now dumps pod state, pod events, pod logs, and namespace events — matching the diagnostic step in the workflow but doing it inline so the deploy step itself produces actionable output.headlamp-dev).Root cause addressed
The original deploy script only checked
kubectl auth can-i delete configmaps. The actual deployment requirescreateon serviceaccounts/deployments/pods,get/liston pods, andcreate tokenon serviceaccounts. If any of these were missing, the script would fail mid-deployment with no diagnostic output — making the actual failure root cause opaque.Testing
Manually verified RBAC check logic. The fix branch targets
mainso it will run through CI and the full E2E pipeline on merge.cc @cpfarhood
Closing — superseded by #29 (canonical E2E consolidation PR). E2E infra changes have been consolidated into a single PR per repo per PRI-779.
Pull request closed