Skip to content

Docs: rename Ingress WithRoute to WithPath (K8s 13.4)#1060

Open
mitchdenny wants to merge 4 commits into
release/13.4from
mitchdenny/k8s-withpath-docs
Open

Docs: rename Ingress WithRoute to WithPath (K8s 13.4)#1060
mitchdenny wants to merge 4 commits into
release/13.4from
mitchdenny/k8s-withpath-docs

Conversation

@mitchdenny
Copy link
Copy Markdown
Member

Aspire.Hosting.Kubernetes renamed the Ingress routing extension from WithRoute to WithPath. The Gateway API equivalent (gateway.WithRoute(...)) kept its name to match the HTTPRoute resource it generates.

Changes

  • deployment/kubernetes-ingress.mdx — new Routing paths to services section with C# + TypeScript WithPath examples, a note about path-type defaults / host overload / WithDefaultBackend composition, and a callout explaining the WithRouteWithPath rename and why Gateway API kept the original name.
  • whats-new/aspire-13-4.mdx — added a short breaking-change subsection covering the rename.
  • whats-new/aspire-13-3.mdx + ja/whats-new/aspire-13-3.mdx — updated the only live ingress.WithRoute(...) code samples to ingress.WithPath(...).

Verified

  • deployment/kubernetes/aks.mdx and deployment/kubernetes-gateway-aks.mdx only use WithRoute on AddGateway — left untouched.
  • deployment/kubernetes-ingress.mdx and deployment/kubernetes-ingress-aks.mdx previously didn't use WithRoute (they showed WithDefaultBackend); the overview now also covers path-based routing via WithPath.
  • Auto-generated package data JSONs still target the shipped 13.3 NuGet package and will refresh automatically via the update-integrations skill once 13.4 ships.

Mitch Denny and others added 2 commits May 25, 2026 10:40
Aspire.Hosting.Kubernetes renamed the Ingress routing extension from
WithRoute to WithPath. Gateway API kept WithRoute. Update the only
live code samples that still showed ingress.WithRoute (the 13.3
what's-new ingress sample in English and Japanese) and add a short
breaking-change note to the 13.4 what's-new page.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add a 'Routing paths to services' section to the Ingress/Gateway
overview showing path-based routing with the new WithPath API,
including a brief note about the WithRoute -> WithPath rename and
that the Gateway API equivalent keeps the original name.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 25, 2026 00:49
@mitchdenny mitchdenny requested a review from IEvangelist as a code owner May 25, 2026 00:49
Add a tip callout near the top of kubernetes-ingress.mdx linking to
the upstream Kubernetes Gateway API page and the Gateway API concepts
overview, encouraging readers to prefer AddGateway(...) over
AddIngress(...) for new deployments.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Aspire Kubernetes documentation to reflect the Ingress routing API rename from WithRoute(...) to WithPath(...) in Aspire.Hosting.Kubernetes 13.4, while clarifying that the Gateway API remains WithRoute(...).

Changes:

  • Added an Ingress/Gateway path-routing overview section (C# + TypeScript) to the Kubernetes Ingress docs, including notes about defaults/overloads and the rename.
  • Added a breaking-change note to the Aspire 13.4 “What’s new” page describing the rename.
  • Updated existing Ingress sample code in the Aspire 13.3 “What’s new” pages (EN/JA) to use WithPath(...).
Show a summary per file
File Description
src/frontend/src/content/docs/whats-new/aspire-13-4.mdx Adds a breaking-change note documenting the WithRouteWithPath rename for Ingress.
src/frontend/src/content/docs/whats-new/aspire-13-3.mdx Updates an Ingress sample to WithPath(...) (but this conflicts with 13.3 API reality).
src/frontend/src/content/docs/ja/whats-new/aspire-13-3.mdx Same as above for the Japanese 13.3 page.
src/frontend/src/content/docs/deployment/kubernetes-ingress.mdx Adds a new “Routing paths to services” section with C#/TypeScript examples and rename context.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 4/4 changed files
  • Comments generated: 4

Comment on lines +75 to +78
var web = builder.AddProject<Projects.Web>("web");

var ingress = k8s.AddIngress("public")
.WithIngressClass("nginx")
Comment on lines +69 to +71
Use `WithPath` on an Ingress (or `WithRoute` on a Gateway) to forward traffic for a URL path to one of your Aspire services. Each call adds a rule to the generated `Ingress` (or `HTTPRoute`) resource pointing at the named endpoint's backing Kubernetes service.

<Tabs syncKey='aspire-lang'>
Comment on lines 392 to 396
.WithTls("api-cert");

// Route requests at "/" to the project's HTTP endpoint.
ingress.WithRoute("/", api.GetEndpoint("http"));
ingress.WithPath("/", api.GetEndpoint("http"));
```
Comment thread src/frontend/src/content/docs/ja/whats-new/aspire-13-3.mdx Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@mitchdenny mitchdenny enabled auto-merge (squash) May 25, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants