← Back to Pull requests

feat(api): expose activeVersions in v20261001preview ARM API #6547

Closed
unknown closed this pull request without merging on Sep 16, 2026 06:00 UTC
View on GitHub
unknown unknown commented on Aug 14, 2026 11:05 UTC
Author

https://redhat.atlassian.net/browse/ARO-28915
https://redhat.atlassian.net/browse/ARO-28916

What

Expose the active control plane and node pool versions to customers via properties.status.activeVersions in the v20261001preview ARM API. Add the ActiveVersion model to TypeSpec, regenerate the OpenAPI spec and SDK. Populated the activeVersions HCPOpenshiftCluster/HCPOpenshiftNodePool at the same time as it was populated in the ServiceProviderCluster/ServiceProviderNodePool

Differentiated activeVersion for external and internal representation of the resource. Renaming HCPOpenShiftClusterActiveVersion to ServiceProviderClusterActiveVersion. Nodepool were also renamed.

Why

Customers currently have no ARM API visibility into which versions are actively running on their cluster control plane and node pools. This is especially important during upgrades, where multiple versions may coexist. Surfacing activeVersions in the status lets customers monitor upgrade progress and confirm completion through the standard ARM API.

Testing

  • Unit tests: existing conversion and deepcopy tests cover the new fields.

  • Integration tests: GET cluster and node pool responses include activeVersions when SP documents have version data.

  • E2E tests: upgrade tests should be updated to assert Properties.Status.ActiveVersions contains the target version after upgrade (follow-up PR once the new API is rolled out up to prod).
  • Special notes for your reviewer

  • Used v20260901preview of the API, it should be done in the latest WIP API version (need to be checked). Confirmed that the version should be v20261001preview, Rebased all the previous work into that version.

  • Found a bug during verifying this test in hypershift. It causes that during nodepool upgrades the activeVersions are the same as the targetVersion not having a meaningful value. https://redhat.atlassian.net/browse/OCPBUGS-109668

  • I have considered fill the activeVersions during Get/List methods by getting the information from the ServiceProvider Cosmo Documents. However, I discarded it because it add some extra calls to the CosmosDB during these methods. The current approach follows the same as the conditions.
  • 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: 357 lines (+267 / -90) across 4 files Reviewer: ahitacat Review duration: 47215m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 357 lines diff across 4 files
    0.43
    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.352
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #6547"
    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: 42.6% (MEDIUM) · Higher = larger blast radius
    42.6%
    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: 16.8% · Safe to merge
    16.8%
    Repository