docs(proposals): add KEP-3119 for Gateway API HTTPRoute support #3160
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
🎉 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:
Join the community:
Feel free to ask questions in the comments if you need any help or clarification!
Thanks again for contributing to Kubeflow! 🙏
[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:
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"]} -->
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.
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.
tariq-hasan
sxivansx
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
SparkUIConfigurationandDriverIngressConfiguration, or both with the field overriding. My recommendation is the flag alone for a first iteration, on the grounds that adding av1beta2field 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:
not_plannedby the stale bot rather than on the merits.ROUTING_PROVIDERselector. Aligning naming with that is worth considering.httproutesRBAC rule in #3125 is granted unconditionally, matching the existingingressesrule. 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.