← Back to Pull requests

AUTOSCALE-1045: feat: add OpenShiftAzureNodeClass API and controller #44

Closed
unknown closed this pull request without merging on Oct 08, 2026 08:06 UTC
View on GitHub
unknown unknown commented on Sep 30, 2026 16:46 UTC
Author

TODO


  • API review by team

  • API review by API reviewers

  • Follow-up: Add schema tests for the new CRD and also move/copy the OpenshiftEC2NodeClass tests here as well

  • - created AUTOSCALE-1061 for this, porting the test suite is a bigger thing...

    Overview

    API related

    This PR adds the karpenter.hypershift.openshift.io/v1alpha1 OpenShiftAzureNodeClass as our customer-facing NodeClass for Karpenter on Azure hosted control planes. It wraps the Azure provider's AKSNodeClass the same way OpenshiftEC2NodeClass wraps EC2NodeClass.

    It is called ...AzureNodeClass and not ...AKSNodeClass as our azure karpenter provider fork works on OpenShift, BUT: Not by reusing the AKS specific stuff but rather by a few OpenShift specific branches in the code. This also means, we don't support everything AKSNodeClass does which is why there are only a few fields in the OpenShiftAzureNodeClass compared to the upstream CRD.

    To make things more complex: Upstream has a proposal for an AzureNodeClass - which to my understanding - is what we're doing partially in our OpenShift mode in the azure provider. This is another argument to name this OpenShiftAzureNodeClass.
    Btw: the AWS CRD uses a lower case s in Openshift, I decided to not be consistent with that and choose the correct OpenShift... writing.

    I chose v1alpha1 as version for this reason.

    The comments/validations seem quite verbose but are based on the HyperShift NodePool, see e.g. https://github.com/openshift/hypershift/blob/4a9464564590cb53be1031f2bd8e77f26ee09b56/api/hypershift/v1beta1/azure.go#L83-L106 .

    AzureEncryptionAtHost uses Enabled and Disabled, I couldn't come up with something less booleanish. It also defaults to Disabled in hypershift and the upstream karpenter provider as there is - compared to AWS - an impact on the hosts that support this and requires AFAIU something configured in the Azure resource group.
    As far as I understand the related docs this approach should be OK.

    The Rest

    About the rest besides the CRD: It is pretty similar what we do in the EC2 NodeClass Controller, see #43 .

  • We reconcile the wrapper CRD into an AKSNodeClass and sync the status.

  • a ValidatingAdmissionPolicy restricts users to only change the wrapper CRD

  • - compared to the EC2 code I moved it into a separate controller as these are separate concerns
  • userData and marketplaceImage stay unset until the ignition pipeline provides them (AUTOSCALE-970), so nodes can't launch yet.

  • ServerSideApply is out of scope, we have AUTOSCALE-1050 for that
  • Diff: 375 lines (+281 / -94) across 4 files Reviewer: LucasAndFlores Review duration: 10999m
    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 · 375 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.355
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #44"
    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: 42.9% (MEDIUM) · Higher = larger blast radius
    42.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: 16.9% · Safe to merge
    16.9%