← Back to Pull requests

feat(api): deprecate client deploy mode for SparkApplication #3270

Closed
unknown closed this pull request without merging on Nov 06, 2026 16:17 UTC
View on GitHub
unknown unknown commented on Oct 27, 2026 10:38 UTC
Author

Purpose of this PR

As discussed in #3253, this deprecates client mode (mode: client and in-cluster-client) for SparkApplication. Nothing stops working yet. Users get a heads-up now, and the mode will be removed in the next API version.

Proposed changes:

  • When someone creates or updates a SparkApplication or ScheduledSparkApplication with mode: client, the webhook now returns a warning. It doesn't reject anything.

  • The operator logs a warning when it submits a client mode app.

  • The mode field docs and the deploy mode constants now say client mode is deprecated.

  • The "Specifying Deployment Mode" section of the user guide now has a warning that points people to SparkConnect.
  • Related issue

    Closes #3253

    Change Category

  • Feature (non-breaking change which adds functionality)

  • Documentation update
  • Rationale

    Client mode runs the driver inside the operator, which is a security risk, and SparkConnect now covers the interactive use case. We're deprecating before removing so existing users have time to move.

    Checklist

  • I have conducted a self-review of my own code.

  • I have updated documentation accordingly.

  • I have added tests that prove my changes are effective or that my feature works.

  • Existing unit tests pass locally with my changes.
  • Additional Notes

    I added a Go // Deprecated: marker to DeployModeClient and DeployModeInClusterClient, so anyone importing the v1beta2 package sees the deprecation in their editor and linter. On its own, that would make make go-lint fail on our own code, because staticcheck flags every use of a deprecated name (rule SA1019). So I added a small exclusion in .golangci.yaml, the same approach as the existing Requeue exclusion. It gets removed along with the constants.

    Diff: 230 lines (+172 / -58) across 2 files Reviewer: RobuRishabh Review duration: 14738m
    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 · 230 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.326
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.060
    Real PR Conversation Timeline
    1 comments
    "Review active on #3270"
    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: 60.2% (MEDIUM) · Higher = larger blast radius
    60.2%
    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.8% · Safe to merge
    23.8%