ROSAENG-65671: add validation for --reason field if egress-verificati… - #952
Conversation
…on is run against an HCP cluster
|
@rolandmkunkel: This pull request references ROSAENG-65671 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 bug to target the "5.1.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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. WalkthroughThe command now rejects HCP cluster requests that provide a cluster ID without an elevation reason or explicit kubeconfig before forcing pod mode. ChangesHCP cluster verification
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This is a localized validation change for HCP egress verification, and no actionable merge-blocking risk remains beyond normal checks and review. 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
petrkotas
left a comment
There was a problem hiding this comment.
/lgtm seems straightforward
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: petrkotas, rolandmkunkel The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
|
@rolandmkunkel: all tests passed! 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. |
…on is run against an HCP cluster
Fix validation gap where
osdctl network verify-egress --cluster-id <id>against an HCP cluster fails with an opaque Kubernetes RBAC error instead of telling the user to provide--reasonThe
--reasoncheck invalidateInput()only fires when--pod-modeis explicitly passed, but HCP clusters auto-force pod mode after validation has already runAdded an early
--reasoncheck inside the HCP pod-mode forcing block so users get a clear errorFixes: ROSAENG-65671
Summary by CodeRabbit