feat: rfe-7592: Add support for custom login server URL in console#2754
feat: rfe-7592: Add support for custom login server URL in console#2754sandert-k8s wants to merge 2 commits intoopenshift:masterfrom
Conversation
Signed-off-by: sandert-k8s <sandert98@gmail.com>
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@sandert-k8s: This pull request references rfe-7592 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 feature request to target the "4.22.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. |
|
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: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (2)
📝 WalkthroughWalkthroughA new optional 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Review Summary by QodoAdd custom login server URL support to console customization
WalkthroughsDescription• Add customLoginServerURL field to ConsoleCustomization struct • Allows overriding server address in 'oc login' command • Enables use of Capsule Proxy or alternative API endpoints • Includes HTTPS URL validation pattern Diagramflowchart LR
A["ConsoleCustomization struct"] -->|"adds field"| B["customLoginServerURL"]
B -->|"overrides"| C["oc login command display"]
C -->|"enables"| D["Capsule Proxy or alternative endpoints"]
File Changes1. operator/v1/types_console.go
|
Code Review by Qodo
1.
|
|
[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 |
|
Hello @sandert-k8s! Some important instructions when contributing to openshift/api: |
|
Hi @sandert-k8s. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@operator/v1/types_console.go`:
- Around line 341-350: The CustomLoginServerURL field currently only has a loose
regex; replace that Pattern annotation with the same CEL-based validation and
MaxLength used by ConsoleURL and ClientDownloadsURL so the field enforces a
well-formed HTTPS URL and max length 1024; specifically, remove the current
+kubebuilder:validation:Pattern for CustomLoginServerURL and add the CEL
validation rule and +kubebuilder:validation:MaxLength=1024 exactly as applied to
ConsoleURL and ClientDownloadsURL to ensure identical strictness and
compatibility.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Pro
Run ID: 8df23883-9243-449c-9a27-c692238e9ab8
📒 Files selected for processing (1)
operator/v1/types_console.go
Signed-off-by: sandert-k8s <sandert98@gmail.com>
150cf84 to
7949bd3
Compare
|
@jhadvig is this on your radar? |
Community contribution.
Adds RFE-7592. Adds the possibility to use the Capsule Proxy as a Server Address. It's only a optical change, it doesn't change anything to the api itself.
Should be reviewed/implemented together with openshift/console#16125