feat(mgmt): make mgmt-agent and kube-applier node scheduling configurable (default infra) #7350
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.65) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.65 · 321 lines diff across 4 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.345
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.065
Real PR Conversation Timeline
1 comments
"Review active on #7350"
general
weight: 0.35
raelga
Summary
Pin
mgmt-agentandkube-applier(both deploy only to management clusters) to the management cluster's infra nodes, with the node role selectable from management-cluster config and the matching toleration derived automatically at Helm render time.Intentional placement change: previously neither component constrained its scheduling, so with the infra and system pools tainted they effectively ran on the untainted worker pool. This makes
infrathe default role so they run on the infra pools — the requested behavior. It does not move anything to the system pool or remove infra pools; the eventual infra-pool retirement (coordinating Prometheus and other workloads) is a separate migration.Follow-up to #7198 (svc-cluster schedulingRole pattern).
svc.aks.systemPoolOnlyis service-cluster-only and is intentionally not used here.Config model
New
mgmt.schedulingconfig (schema-validated), minimal and EV2-safe — only a scalar config reference, no list /rangeover config (seedocs/service-deployment-concept.md):role—infraorsystem(enum), defaultinfra. Selected via nodeAffinity onaro-hcp.azure.com/role.The matching toleration is derived in Helm from the role:
infra→infra=true:NoSchedulesystem→CriticalAddonsOnly=true:NoSchedulewith
operator: Equal,value: "true",effect: NoSchedulefixed. (If a management pool's taint key changes in future, that will be an explicit reviewed change rather than a config override.)Changes
mgmt-agentandkube-applierrender the quoted role nodeAffinity and the derived toleration.infra) andsystem-role override (CriticalAddonsOnly, no residual infra toleration) via helmtest golden fixtures for both charts,TestMgmtSchedulingGo assertions, and a config schema validation test (role enum).Validation
Full
make verifypasses (deepcopy, tidy, materialize, helm fixtures, schema, lint). EV2 resolve-mode manifest generation was validated by the reviewer on a prior revision; re-validation of this revision is pending. The diff is scoped to scheduling-related files plus the requiredtooling/helmtestgo.mod normalization.Tracking
No separate tracking issue: this implements scheduling changes requested directly in review (building on #7198). The eventual management infra-pool retirement will be tracked separately as its own migration.
---
AI-generated. Review for accuracy.
@raelga requested from Slack