feat: add configurable schedulerName for webhook, controller #3315
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.60) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.60 · 218 lines diff across 2 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.322
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.060
Real PR Conversation Timeline
1 comments
"Review active on #3315"
general
weight: 0.35
nabuskey
Purpose of this PR
Controller and webhook pods could not previously be scheduled by a scheduler other than the default Kubernetes scheduler. Some clusters require a custom scheduler (e.g. for node affinity, bin-packing, or multi-scheduler setups), so a configurable
schedulerNamevalue wasneeded at the Helm chart level.
Proposed changes:
- Added new
controller.schedulerNameandwebhook.schedulerNamevalues tovalues.yaml(default"", meaning the default scheduler is used).-
schedulerNameis conditionally set onspec.template.specin the controller and webhookdeployment.yamltemplates via{{- with ... }}.- Added Helm unit tests for both controller and webhook verifying that
spec.template.spec.schedulerNameis set correctly when the value is provided.- Documented the new values in
charts/spark-operator-chart/README.md(regenerated viamake helm-docs).## Change Category
- [ ] Bugfix (non-breaking change which fixes an issue)
- [x] Feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that could affect existing functionality)
- [ ] Documentation update
### Rationale
The change is fully backward compatible — the default value is an empty string, so
schedulerNameis not rendered into the manifest at all unless the user explicitly sets it.## Checklist
- [x] I have conducted a self-review of my own code.
- [x] I have updated documentation accordingly.
- [x] I have added tests that prove my changes are effective or that my feature works.
- [x] Existing unit tests pass locally with my changes.
### Additional Notes
README.md was regenerated using
make helm-docsto stay in sync withvalues.yaml.