feat(api): add MinMember configuration for workload scheduling #3093
All Vouch review confidence checks passed
Residual risk 0.40 = Change Risk (0.73) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.73 · 348 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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.350
Shallow Review Depth
shallow_review_depth
0.344
Sensitive Paths
sensitive_paths
0.073
Real PR Conversation Timeline
1 comments
"Review active on #3093"
general
weight: 0.35
RobuRishabh
Part of #2962
Purpose of this PR
Adds the preparatory API surface for the upcoming native Kubernetes Workload/PodGroup (scheduling.k8s.io/v1alpha2) batch-scheduler backend. No user-facing behavior change in this release — the workload scheduler name is not yet registered.
Proposed changes:
api/v1beta2: addPodSchedulingGrouptype andSchedulingGroupfield onSparkPodSpec, plusMinMemberfield onBatchSchedulerConfiguration.SchedulingGroupis operator-managed (set by the workload scheduler backend);MinMemberis an optional user override for the gang minCount.internal/webhook: addvalidateWorkloadSchedulerFields()that rejects user-setschedulingGroupfields and emits a warning whenbatchSchedulerOptions.queueis set withbatchScheduler=workload(queue has no effect on the Workload API). Table-driven unit tests included.charts: addscheduling.k8s.ioRBAC rule (workloads,podgroups) gated on newcontroller.batchScheduler.workload.enableHelm value (defaultfalse).SparkApplicationandScheduledSparkApplication), OpenAPI spec, Python SDK models.Change Category
Rationale
Unblocks the follow-up
workloadscheduler backend PR by landing API types, webhook validation, and RBAC first, as additive plumbing with zero behavior change for existing Volcano/YuniKorn/kube-scheduler paths.workloadis not yet a registered scheduler name, so none of this is reachable by users yet.Checklist
Additional Notes
swagger.json), Python SDK client models, and CRD schema forScheduledSparkApplication(which embeds the same pod spec, so it needed regen too, not justSparkApplication). No hand-written logic beyond the types/webhook/RBAC changes above.controller.batchScheduler.workload.enablevalues flag (defaultfalse) rather than granted unconditionally, since no scheduler backend consumes it until the follow-up PR.make manifests/make generatere-run; generated diffs (deepcopy, OpenAPI, CRDs, Python SDK) included and verified against source types.