AUTOSCALE-1046: feat: hold Azure NodeClass releases during control plane upgrades #56
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
LucasAndFlores
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:
- after the upgrade the reconciliation should be triggered.
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:
- 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
- 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: