ROSAENG-60886: improve hypershift-install Job robustness and RBAC - #747
ROSAENG-60886: improve hypershift-install Job robustness and RBAC#747theautoroboto wants to merge 1 commit into
Conversation
Hardens the hypershift-install Job script and fixes upstream gaps:
- Use /bin/bash with set -euo pipefail for better error handling
- Fix OIDC variable syntax: $(VAR) → "${VAR}" (bug in origin/main)
- Capture hypershift install output and handle aws-iam-auth fork's
known benign exit 2 error with namespace verification fallback
- Make external-dns flags conditional on externalDns.domain being set
- Add external-dns ClusterRole RBAC patch for discovery.k8s.io and
networking.k8s.io API groups (missing in HyperShift's generated role)
- Improve external-dns deployment patch error handling with HTTP code
capture and warning on failure instead of silent failure
These changes are independent of the Karpenter migration and improve
Job reliability regardless of node provisioning method.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
@theautoroboto: This pull request references ROSAENG-60886 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the epic to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe Hypershift installer job now uses strict Bash execution, validates tolerated installation failures, and conditionally configures external-dns flags, deployment role assumptions, and ClusterRole permissions. ChangesHypershift installer flow
Estimated code review effort: 3 (Moderate) | ~20 minutes Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/test on-demand-e2e |
|
/retest |
1 similar comment
|
/retest |
|
@theautoroboto: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Hardens the hypershift-install Job script and fixes upstream gaps:
These changes are independent of the Karpenter migration and improve Job reliability regardless of node provisioning method.
Summary by CodeRabbit
Bug Fixes
Enhancements