← Back to Pull requests

ROSAENG-67802 | feat: default interactive cluster creation to HCP #3584

Closed
unknown closed this pull request without merging on Sep 29, 2026 20:51 UTC
View on GitHub
unknown unknown commented on Sep 25, 2026 19:26 UTC
Author

Summary


Changes the default cluster creation type in interactive mode from classic to Hosted Control Plane (HCP). When the user runs rosa create cluster in interactive mode without specifying --hosted-cp, the "Deploy cluster with Hosted Control Plane" prompt now defaults to Yes instead of No.

When the user has passed flags that are only compatible with classic clusters (e.g. --non-sts, --mint-mode, --private-link, --controlplane-iam-role-arn, --disable-workload-monitoring, or classic-only security group flags), the HCP prompt is skipped entirely and an informational message explains that classic architecture is being used because the specified flags are not compatible with HCP. This prevents users from accidentally selecting HCP when their partial command is already configured for classic.

The non-interactive --hosted-cp flag default remains false, so scripted and CI usage is unaffected.

Jira


  • ROSAENG-67802
  • Type of Change


  • feat

  • fix

  • docs / style / refactor / test / chore / build / ci / perf
  • Testing


  • make test passes

  • Unit tests added for classicOnlyFlagsChanged (11 cases) covering each classic-only flag individually, the multi-flag case, and confirming HCP-compatible flags are not detected

  • Unit tests added for resolveHostedCPDefault (6 cases) verifying:

  • - Defaults to HCP when no flags are set
    - Respects explicit --hosted-cp=true and --hosted-cp=false
    - Skips prompt when a single or multiple classic-only flags are set
    - Still shows prompt when --hosted-cp is explicitly set alongside a classic-only flag
  • Manual testing scenarios:

  • - rosa create cluster -i — HCP prompt defaults to [Y/n]
    - rosa create cluster --disable-workload-monitoring — prints info message about classic architecture, no HCP prompt
    - rosa create cluster --disable-workload-monitoring --non-sts — prints info message listing both flags
    - rosa create cluster --hosted-cp=false -i — HCP prompt defaults to [y/N]

        > ./rosa create cluster
        I: Enabling interactive mode
        ? Cluster name: mmcneill-test
        ? Domain prefix (optional):
        ? Deploy cluster with Hosted Control Plane: [? for help] (Y/n)
        ---
        > ./rosa create cluster --disable-workload-monitoring
        I: Enabling interactive mode
        ? Cluster name: mmcneill-test
        ? Domain prefix (optional):
        I: Using classic architecture because --disable-workload-monitoring is not compatible with Hosted Control Plane clusters
        ---
        > ./rosa create cluster --disable-workload-monitoring --non-sts
        I: Enabling interactive mode
        ? Cluster name: mmcneill-test
        ? Domain prefix (optional):
        I: Using classic architecture because --non-sts, --disable-workload-monitoring are not compatible with Hosted Control Plane clusters
        ---
        > ./rosa create cluster --hosted-cp=false
        I: Enabling interactive mode
        ? Cluster name: mmcneill-test
        ? Domain prefix (optional): 
        ? Deploy cluster with Hosted Control Plane: [? for help] (y/N)
        

    Breaking Changes


  • No breaking changes
  • Checklist


  • Commit format follows OCM-XXXXX | type: description

  • make install-hooks has been run

  • Tests added/updated where appropriate

  • Manually tested the change
  • [ROSAENG-67802]: https://redhat.atlassian.net/browse/ROSAENG-67802?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

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

    Summary by CodeRabbit

    New Features
    During interactive cluster creation, supplying classic-only options without an explicit --hosted-cp choice selects classic architecture and skips the Hosted Control Plane prompt.
    When the prompt is skipped, the command identifies the classic-only options that prompted the selection. Boolean options are considered set when enabled; --sts=false and changed value options also trigger classic selection.
    When the prompt appears, it defaults to the explicitly supplied --hosted-cp value, or to Hosted Control Plane when no value is supplied.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 536 lines (+402 / -134) across 6 files Reviewer: michaelryanmcneill Review duration: 5845m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.48 · 536 lines diff across 6 files
    0.48
    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.376
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3584"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    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: 47.9% (MEDIUM) · Higher = larger blast radius
    47.9%
    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: 18.9% · Safe to merge
    18.9%
    Repository