SREP-3941: Add --hive-ocm-url flag to cluster ssh key for multi-env OCM support#865
SREP-3941: Add --hive-ocm-url flag to cluster ssh key for multi-env OCM support#865nephomaniac wants to merge 1 commit intoopenshift:masterfrom
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Placing on hold until all the similar commands/PRs adding multiple OCM env support can have the common implementation pattern reviewed. Will unhold after the other PRs and general pattern get a chance for review. /hold |
|
@nephomaniac: An error was encountered searching for bug SREP-3941 on the Jira server at https://issues.redhat.com. No known errors were detected, please see the full error message for details. Full error message.
No response returned: Get "https://issues.redhat.com/rest/api/2/issue/SREP-3941": GET https://issues.redhat.com/rest/api/2/issue/SREP-3941 giving up after 5 attempt(s)
Please contact an administrator to resolve this issue, then request a bug refresh with 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: nephomaniac 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 |
07a322e to
5239ecc
Compare
|
@nephomaniac: An error was encountered searching for bug SREP-3941 on the Jira server at https://issues.redhat.com. No known errors were detected, please see the full error message for details. Full error message.
No response returned: Get "https://issues.redhat.com/rest/api/2/issue/SREP-3941": GET https://issues.redhat.com/rest/api/2/issue/SREP-3941 giving up after 5 attempt(s)
Please contact an administrator to resolve this issue, then request a bug refresh with 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. |
|
/retest |
|
@nephomaniac: 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. |
Summary
Adds
--hive-ocm-urlflag toosdctl cluster ssh keycommand to enable multi-environment OCM support for staging/integration testing.Changes
--hive-ocm-urloptional flag to ssh key commandRunEfunction to fail fast on invalid OCM URLskey_test.goto verify early validation behaviorImplementation Details
When
--hive-ocm-urlis specified:utils.CreateConnectionWithUrl()utils.GetHiveClusterWithConn()to query hive from different OCM environmentk8s.NewAsBackplaneClusterAdminWithConn()utils.ValidateAndResolveOcmUrl()Testing
✅ Tested in staging environment with valid --hive-ocm-url values
✅ Tested in production environment with valid --hive-ocm-url values
✅ Validated early failure with invalid --hive-ocm-url values
✅ Backward compatibility verified (command works without --hive-ocm-url flag)
✅ Unit tests passing (including new tests for validation logic)
Parent Epic: SREP-3936
Jira: SREP-3941
Note
This PR is part of a series adding multi-environment OCM support to osdctl commands. Will place on hold until the common implementation pattern can be reviewed across all related PRs.
Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com