← Back to Pull requests

feat: add configurable schedulerName for webhook, controller #3315

Closed
unknown closed this pull request without merging on Nov 18, 2026 16:22 UTC
View on GitHub
unknown unknown commented on Nov 17, 2026 10:50 UTC
Author

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 configurableschedulerName value was
needed at the Helm chart level.

Proposed changes:

- Added new controller.schedulerName and webhook.schedulerName values to values.yaml (default "", meaning the default scheduler is used).
- schedulerName is conditionally set on spec.template.spec in the controller and webhook deployment.yaml templates via {{- with ... }}.
- Added Helm unit tests for both controller and webhook verifying that spec.template.spec.schedulerName is set correctly when the value is provided.
- Documented the new values in charts/spark-operator-chart/README.md (regenerated via make 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 schedulerName is 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-docs to stay in sync with values.yaml.

Diff: 218 lines (+163 / -55) across 2 files Reviewer: nabuskey Review duration: 1772m
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
0.60
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.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
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed sensitive_module
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: 59.9% (MEDIUM) · Higher = larger blast radius
59.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: 23.6% · Safe to merge
23.6%