← Back to Pull requests

feat: Allow node pool to use a different channel group than its cluster #5497

Closed
unknown closed this pull request without merging on Jun 12, 2026 18:52 UTC
View on GitHub
unknown unknown commented on Jun 03, 2026 16:20 UTC
Author

ARO-27518

What

Allow node pools to use a different channel group than their parent cluster. Previously, creating or updating a node pool with a channel group that didn't match the cluster's would be rejected. This PR removes that constraint and adds enum validation to ensure the channel group is a known value.

Why

Node pools should be able to independently select their channel group (e.g., a "stable" node pool on a "candidate" cluster). There is no constraint in Hypershift around this.

Testing

  • Unit tests (admission): Rewrote TestAdmitNodePool_IncludesChannelGroupCheck -> TestAdmitNodePool_AllowsDifferentChannelGroup to verify that a node pool with a different channel group than the cluster is accepted.

  • Unit tests (validation): Added test cases for channel group enum enforcement: invalid values rejected with and without feature flag, candidate/nightly rejected without ExperimentalReleaseFeatures AFEC, stable/fast accepted.
  • Special notes for your reviewer

  • The validateVersion() method on HCPOpenShiftClusterNodePool was deleted entirely since its only purpose was the channel group match check.

  • The Validate() method on HCPOpenShiftClusterNodePool still validates subnet via validateSubnetID().

  • The enum validation follows the same pattern as clusters in validate_cluster.go:368-374.

  • The existing "stable" default in SetDefaultValuesNodePool() is kept as-is for backwards compatibility.

  • This works requires a CS change to be merged and deployed in ARO-HCP https://gitlab.cee.redhat.com/service/aro-hcp-clusters-service/-/merge_requests/348
  • PR Checklist


  • PR is scoped to a single task (no mixed concerns)

  • Title follows Conventional Commits format

  • Summary explains the "Why" behind the change

  • Linked to relevant ticket/issue

  • Screenshots included (if graph/UI/metrics changes)

  • Self-reviewed the diff

  • CI/CD checks are passing (ignore Tide)

  • Draft PR used for WIP (if applicable)

  • Commit history is clean (rebased/squashed)

  • Tricky code blocks are commented

  • Specific reviewers tagged

  • All comment threads resolved before merge
  • Diff: 289 lines (+216 / -73) across 3 files Reviewer: ahitacat Review duration: 13111m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 289 lines diff across 3 files
    0.40
    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.339
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #5497"
    general weight: 0.35
    Reviewers
    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: 39.8% (MEDIUM) · Higher = larger blast radius
    39.8%
    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: 15.7% · Safe to merge
    15.7%
    Repository