ROSAENG-60614 | feat: allow partial component route updates #3403
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3403"
general
weight: 0.35
reedcort
PR Summary
Allow partial component route updates via
rosa edit ingress --component-routes— users can now set a single route (e.g. only console) without providing all routes.Detailed Description of the Issue
The previous change (openshift/rosa#3376) followed the Classic CLI framework which required all routes to be set together (classic: oauth+console+downloads, HCP: console+downloads). The OCM API supports partial updates — setting only console leaves downloads unchanged — but the CLI rejected partial input with "the expected amount of component routes is N, but M have been supplied". After review feedback, the decision is to allow partial updates to match the API flexibility.
Related Issues and PRs
Type of Change
Previous Behavior
rosa edit ingress --component-routesrequired all routes for the platform — classic required oauth+console+downloads (3), HCP required console+downloads (2). Passing fewer routes returned:Behavior After This Change
Users can pass any subset of valid routes. Name validation and duplicate detection are preserved.
Invalid names and duplicates are still rejected:
How to Test (Step-by-Step)
Preconditions
hypershift-component-routesfeature toggle enabledopenshift-configon the hosted clusterTest Steps
1. Set only console:
rosa edit ingress -c <cluster> --component-routes 'console: hostname=console.example.com;tlsSecretRef=console-tls' <ingress-id>2. Verify console route updated, downloads unchanged
3. Set only downloads:
rosa edit ingress -c <cluster> --component-routes 'downloads: hostname=downloads.example.com;tlsSecretRef=downloads-tls' <ingress-id>4. Verify downloads route updated, console unchanged
5. Verify invalid name still rejected:
rosa edit ingress -c <cluster> --component-routes 'oauth: hostname=x;tlsSecretRef=y' <ingress-id>6. Verify duplicate still rejected:
rosa edit ingress -c <cluster> --component-routes 'console: hostname=a;tlsSecretRef=b, console: hostname=c;tlsSecretRef=d' <ingress-id>Expected Results
Proof of the Fix
Live cluster — partial updates and clearing
1. Set console only:
API state:
{"console": {"hostname": "console.custom.example.com", "tls_secret_ref": "console-tls-secret"}}2. Add downloads (console unchanged):
API state:
{"console": {...}, "downloads": {"hostname": "downloads.custom.example.com", "tls_secret_ref": "downloads-tls-secret"}}3. Clear downloads only (console unchanged):
API state:
{"console": {"hostname": "console.custom.example.com", "tls_secret_ref": "console-tls-secret"}}Breaking Changes
Developer Verification Checklist
[JIRA-TICKET] | [TYPE]: <MESSAGE>.make install-hookshas been run in this clone.make testpasses.make lintpasses.make rosapasses.[ROSAENG-60614]: https://redhat.atlassian.net/browse/ROSAENG-60614?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
Documentation
Updated the
component-routesCLI flag help text to clarify HCP-supported components and the requiredhostname+tlsSecretRefpair per route.Bug Fixes
Improved HCP component-route validation to avoid failing solely due to a component count mismatch, while still accepting valid partial configurations.
Tests
Expanded ingress component-route parsing tests to confirm correct output when only selected routes are provided and that empty parameter values are serialized as empty strings.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->