← Back to Pull requests

refactor(operator): rename MaaS portal resources and migrate legacy operands #10166

Closed
unknown closed this pull request without merging on Oct 09, 2026 15:35 UTC
View on GitHub
unknown unknown commented on Oct 08, 2026 19:00 UTC
Author

https://redhat.atlassian.net/browse/RHOAIENG-99076

Description

Rename MaaS Portal Kubernetes operands from maas-consumer-portal to maas-portal, aligning resource names, labels, federation configuration, RBAC, serving certificates, and packaged static assets.

Existing installations migrate through a retryable reconciliation flow:

  • Keep the legacy endpoint until the new Deployment completes its intended rollout with the current federation hash. Read rollout state directly from the API server to avoid stale cached readiness.

  • Observe legacy HTTPRoute deletion before applying the replacement, then wait for route acceptance before cleaning up legacy backend resources. A short routing interruption can occur during route replacement.

  • Temporarily allow both portal identities in MaaS, GenAI, and Perses network policies. Remove legacy peers after migration completes.

  • Clean up legacy workloads, configuration, TLS, ServiceAccounts, and subscription grants without deleting shared dependencies. Report deletion failures and retry; retain finalizers while cleanup is pending.
  • Update build/dev configuration and move portal lifecycle documentation into docs/maas-portal.md. The browser prefix /maas-consumer-portal/, compatibility CR fields, and existing availability condition remain unchanged; the browser-path rename belongs to RHOAIENG-99077.

    Post-merge follow-up: wait for this change to land downstream through autosync, then open a new downstream PR updating Dockerfile.konflux.core-bff and Dockerfile.konflux.dashboard-operator to mirror the upstream Dockerfile changes for the Konflux image builds. Record the autosync evidence and downstream PR link in RHOAIENG-99076.

    How Has This Been Tested?

    Validated portal migration, rollout/restart recovery, networking, RBAC, and teardown on RHOAI 3.6.0 / ROSA / OpenShift 4.21.34.

    To rerun automated checks:

    make -C dashboard-operator test
    make -C dashboard-operator test-integration
    pnpm --filter @odh-dashboard/maas-portal-distribution test-unit
    

    Test Impact

    Add unit and envtest coverage for rollout boundaries, current federation hashes, stale-cache protection, overlapping routes, scoped/idempotent cleanup, pending finalizers, API failures, forbidden ServiceAccount deletion, and recovery. Update manifest, lifecycle, subscription, observability, routing, and dev-proxy tests for the renamed identities.

    Real-cluster checks supplement automation with Gateway admission, ROSA admission policy, actual CNI enforcement, and external endpoint behavior.

    Request review criteria:

    Self checklist (all need to be checked):

  • The developer has manually tested the changes and verified that the changes work

  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).

  • The developer has added tests or explained why testing cannot be added (unit or cypress tests for related changes)

  • The code follows our [Best Practices](/docs/best-practices.md) (React coding standards, PatternFly usage, performance considerations)
  • After the PR is posted & before it merges:

  • The developer has tested their solution on a cluster by using the image produced by the PR to main
  • [RHOAIENG-99076]: https://redhat.atlassian.net/browse/RHOAIENG-99076?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    New Features
    The MaaS Portal now uses a consistent maas-portal identity across its deployment, routing, and related resources.
    Added migration support to keep the existing portal available while the replacement rolls out, then clean up legacy resources. Cleanup and URL updates now wait for deletion to complete.
    Documentation
    * Added a MaaS Portal guide covering configuration, availability, routing, migration, and upgrades.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 528 lines (+396 / -132) across 6 files Reviewer: lucferbux Review duration: 1234m
    All Vouch review confidence checks passed
    Residual risk 0.28 = Change Risk (0.71) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.71 · 528 lines diff across 6 files
    0.71
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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.375
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.071
    Real PR Conversation Timeline
    1 comments
    "Review active on #10166"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 71% (HIGH) · Higher = larger blast radius
    71%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 28.1% · Safe to merge
    28.1%