feat!: remove client and in-cluster-client deploy modes #3340
All Vouch review confidence checks passed
Residual risk 0.35 = Change Risk (0.66) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.66 · 358 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.352
Shallow Review Depth
shallow_review_depth
0.344
Sensitive Paths
sensitive_paths
0.066
Real PR Conversation Timeline
1 comments
"Review active on #3340"
general
weight: 0.35
nabuskey
Purpose of this PR
Fixes GHSA-cmhg-mvhx-5pj6.
Removes
clientdeploy mode from SparkApplication and ScheduledSparkApplication. Onlyclustermode is now supported. Client mode was deprecated in the last release (#3253).The Spark Operator community call on 28 Nov 2026 agreed on a feature gate disabled by default. Following review feedback from @nabuskey, this PR now removes the mode instead, since the deprecation has already been released and announced.
Proposed changes:
modeenum toclusterand regenerate the CRDs, OpenAPI spec, Python API and API docsclientorin-cluster-clientmode, e.g. one created before the upgrade--feature-gatesflag, and pass the same gate list from Helm and Kustomize as the controllerChange Category
Rationale
Client mode runs the driver inside the operator, which is the subject of the advisory above. It was deprecated last release, so removing it closes the issue without leaving an opt-in path. Interactive workloads should use SparkConnect.
Checklist
Additional Notes
1. Breaking on upgrade: new SparkApplications in client mode are rejected by the API server. Apps created in client mode before upgrading fail at submission with a "no longer supported" error. This needs a release note.
2. I kept the deprecated
DeployModeClient/DeployModeInClusterClientGo constants so code that imports the API package doesn't break. I also keptspec.driver.podName, since removing a field is a larger API change. Happy to remove either if you prefer.3. The webhook now accepts
--feature-gates, which it didn't before. It isn't needed for this change any more, but it keeps the webhook in line with the controller. I can split it into its own PR if you'd rather.4. The commit history still has the feature gate commits from before the switch to removal. Happy to squash before merge.
5. Tested locally with
make unit-test,make helm-unittest,make drift-checkandgolangci-lint(Go 1.26.10).