← Back to Pull requests

AUTOSCALE-1046: feat: hold Azure NodeClass releases during control plane upgrades #56

Closed
unknown closed this pull request without merging on Oct 15, 2026 12:23 UTC
View on GitHub
unknown unknown commented on Oct 12, 2026 14:58 UTC
Author

This PR resolves AUTOSCALE-1046 with the goal to prevent OpenShiftAzureNodeClasses from using the latest image and ignition config during an upgrade of the control plane. There are basically two cases:

  • OpenShift... CRDs without a version should continue to use their current image & config until the upgrade is complete

  • - after the upgrade the reconciliation should be triggered.
  • OpenShift... CRDs with a version should not be affected and should just continue using the specified version and also continue to get ignition config updates or so.
  • The issue depends somewhat on AUTOSCALE-970 to implement the ignition config and image resolution logic for the Azure provider - I made a few assumptions based on the existing EC2 logic about how the resolved image is then used.

    I let AI also check the azure karpenter provider where it identified an issue that marked the nodes as drifted as it compared the k8s version of the node against the apiserver, see https://github.com/openshift/Azure-karpenter-provider-azure/pull/10 .

    Commits

    feat: hold Azure NodeClass releases during control plane upgrades

    The first commit is basically all about this, it watches the HCP and Secret and reconciles based on those:

  • AzureNodeClass reconciliation changes

  • - watch HCP and Secret events and reconcile the OpenShift...NodeClasses based on that
    - retrieve the HCP and userdata Secret
    - reconcile the AKSNodeClass based on that (in a new dedicated func to avoid gocyclo lint issues)
    - by extracting the marketplaceImage from the userdata Secret as I assume it would look like for/after AUTOSCALE-970
  • EC2 controller uses the same logic for

  • - checking for control plane upgrades
    - syncing the status from the upstream CR into our wrapper CR
    - using the same predicate to reconcile when user data secrets change
    - reconciling only a specific OpenShiftEC2NodeClass on a user data secret change instead of reconciling all CRs on any secret change

    feat: watch the HostedControlPlane in the EC2 NodeClass controller

    The second commit aligns the existing EC2 nodeclass controller with the approach I chose for the Azure controller:

  • reconcile based on HCP events, don't requeue after X seconds

  • use the same helpers to check if the control plane version changed
  • Diff: 308 lines (+231 / -77) across 3 files Reviewer: LucasAndFlores Review duration: 4165m
    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 · 308 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.343
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #56"
    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: 40.2% (MEDIUM) · Higher = larger blast radius
    40.2%
    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.9% · Safe to merge
    15.9%