← Back to Pull requests

docs(proposals): add KEP-3119 for Gateway API HTTPRoute support #3160

Open
sxivansx opened this pull request with 384 lines diff across 1 files
View on GitHub
sxivansx sxivansx commented on Sep 12, 2026 11:52 UTC
Author

Design document for #3119, requested by @tariq-hasan before implementation continues.

proposals/ has held only a README so far, so this follows the template in kubeflow/community and takes the issue number as the KEP number.

The two decisions that need maintainer direction are in Open Questions. Both are laid out with options and trade-offs rather than a single proposal, since each determines API surface that cannot be walked back:

1. Where does the switch live — chart and operator flag only, a per-application field on SparkUIConfiguration and DriverIngressConfiguration, or both with the field overriding. My recommendation is the flag alone for a first iteration, on the grounds that adding a v1beta2 field is a one-way door and the flag can grow into the override later.
2. Require the Gateway API CRDs, or detect and no-op — detection is already the house pattern via getPreferredAvailableAPIs, but silence when someone explicitly enables the feature is a configuration that looks like it works and does not. My recommendation is to detect, and fail fast only when it was explicitly requested.

Happy to be overruled on either. The tables are meant to make the trade-offs decidable rather than to argue for one answer.

A few things the document records that may be useful independently:

  • #2781 and #2214 both asked for this and were closed not_planned by the stale bot rather than on the merits.

  • GSoC 2025 already delivered the first phase of this migration across other Kubeflow repositories, and kubeflow/notebooks#1301 is doing the equivalent for workspaces with a ROUTING_PROVIDER selector. Aligning naming with that is worth considering.

  • The httproutes RBAC rule in #3125 is granted unconditionally, matching the existing ingresses rule. Gating it on the feature flag would be tighter but splits the role template — flagged for your preference rather than decided.
  • #3125 remains open and green. It deliberately adds no CRD surface, so it is unaffected by Question 1 whichever way it goes, but I have asked on #3119 whether you would rather hold it until this is agreed.

    Diff: 384 lines (+384 / -0) across 1 files Reviewer: tariq-hasan Review duration: 35187m
    All Vouch review confidence checks passed
    Residual risk 0.03 = Change Risk (0.39) × (1 − Review Confidence (0.92)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 384 lines diff across 1 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.92 · 3 substantive comment(s)
    0.92
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    91%
    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.356
    Real PR Conversation Timeline
    6 items
    copilot-pull-request-reviewer[bot] copilot-pull-request-reviewer[bot] commented on Sep 12, 2026 11:52 UTC
    Reviewer

    Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

    github-actions[bot] github-actions[bot] commented on Sep 12, 2026 11:52 UTC
    Bot

    🎉 Welcome to the Kubeflow Spark Operator! 🎉

    Thanks for opening your first PR! We're happy to have you as part of our community 🚀

    Here's what happens next:

  • If you haven't already, please check out our Contributing Guide for repo-specific guidelines and the Kubeflow Contributor Guide for general community standards.

  • Our team will review your PR soon!
  • Join the community:

  • Slack: Join our #kubeflow-spark-on-kubernetes Slack channel.
  • Feel free to ask questions in the comments if you need any help or clarification!
    Thanks again for contributing to Kubeflow! 🙏

    google-oss-prow[bot] google-oss-prow[bot] commented on Sep 12, 2026 11:52 UTC
    Bot

    [APPROVALNOTIFIER] This PR is NOT APPROVED

    This pull-request has been approved by:
    Once this PR has been reviewed and has the lgtm label, please assign andreyvelich for approval. For more information see the Kubernetes Code Review Process.

    The full list of commands accepted by this bot can be found here.

    <details open>
    Needs approval from an approver in each of these files:

  • OWNERS
  • Approvers can indicate their approval by writing /approve in a comment
    Approvers can cancel approval by writing /approve cancel in a comment
    </details>
    <!-- META={"approvers":["andreyvelich"]} -->

    tariq-hasan tariq-hasan commented on Sep 21, 2026 15:05 UTC
    Reviewer

    Thanks for raising the PR.

    I think we need to be more explicit about the semantic contract when switching from Ingress to HTTPRoute. So we need to decompose the Ingress semantics (routing, TLS, authentication, rewrite behavior, controller selection, annotations/policies, status/attachment, etc.) and remap individually into the Gateway API architecture. We may find that some translate cleanly, some move elsewhere, some disappear while some require an explicit rejection. Either way that contract needs to be made explicit within the KEP.

    Another point would be to consider how driverIngressOptions is handled - whether we take a phased approach and in Phase 1 only consider Spark UI and relegate the driverIngressOptions to phase 2.

    sxivansx sxivansx commented on Sep 30, 2026 18:17 UTC
    Author

    Thanks — added both.

    The semantic contract is a new section under Design Details. It walks the Ingress semantics createDriverIngressV1 relies on and remaps each one: hostname, backend and status translate or improve; the subpath capture-group path disappears; rewrite and controller selection move to a URLRewrite filter and parentRefs; and ingressTLS, ingressAnnotations and ingressClassName have no HTTPRoute equivalent. TLS is the awkward one — it terminates on the Gateway listener, which the operator does not own.

    #3125 logs and ignores those three today. I have put that up as Open Question 3 rather than leave it implicit, recommending warn-and-ignore stays while the switch is operator-level, since a cluster-wide flag flip cannot retroactively fix applications that already set ingressTLS.

    On phasing: Spark UI first, driverIngressOptions second — already what #3125 does, since it does not touch driveringress.go. Both funnel through createDriverIngressV1, so phase 2 is plumbing rather than new semantics.

    Reviewers
    Assignees
    sxivansx sxivansx
    Labels
    risk: low confidence: 91.8% reviewed
    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: 38.6% (MEDIUM) · Higher = larger blast radius
    38.6%
    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: 91.8% · Lower = rushed or shallow review
    91.8%
    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: 3.2% · Safe to merge
    3.2%