Repository navigation
feat(k8s): Traefik proxy CRDs (#1320) - #1380
Merged
Merged
Conversation
Adds the ten traefik.io/v1alpha1 kinds -- IngressRoute, IngressRouteTCP, IngressRouteUDP, Middleware, MiddlewareTCP, ServersTransport, ServersTransportTCP, TLSOption, TLSStore, TraefikService. An IngressRoute is not a networking.k8s.io Ingress with annotations; it is a separate CRD with its own matcher grammar. Before this, an estate fronted by Traefik had an edge chant could not express at all. Scoped to the traefik.io group only. The chart's crds/ also ships hub.traefik.io_* (Traefik Hub -- different product, no known consumer) and a vendored Gateway API copy, which is already generated from its own upstream and would collide. No parser override: the first-segment rule already yields `Traefik`. Confirmed rather than assumed. Pinned to chart v41.1.0 == Traefik v3.7.9. The chart version is not the proxy version, so the doc comment records both. The test reproduces fountain's k8s/ingressroute.yaml, including the cross-namespace middleware ref -- one key that is easy to omit and whose omission applies cleanly and silently stops redirecting. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017jrdX8yZWxFayQpbpFFj1B
lex00
force-pushed
the
feat/1320-traefik-crds
branch
from
August 3, 2026 02:39
25f1648 to
7e6ebc0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1320. Part of #1318.
Adds the ten
traefik.io/v1alpha1kinds:IngressRoute,IngressRouteTCP,IngressRouteUDP,Middleware,MiddlewareTCP,ServersTransport,ServersTransportTCP,TLSOption,TLSStore,TraefikService.Scope
traefik.ioonly, as the issue specified. The chart'scrds/directory also ships:hub.traefik.io_*— Traefik Hub, a different commercial product, ~12 kinds, no known consumer.GATEWAY_API_CRD_BASE, so a second copy would collide.Neither is taken.
No parser override
The issue asked to confirm rather than assume: the first-segment rule maps
traefik.io→Traefik, which is alreadyK8s::Traefik::IngressRoute. Nothing to add. Also verified no duplicate export names in the generated barrel —Middleware,TLSStoreandTraefikServiceare generic enough to be worth checking.Pin
Chart v41.1.0, which ships Traefik v3.7.9. The issue flagged that the chart version and the proxy version are different numbers and asked for both to be recorded — they're in the
crd-sources.tsdoc comment and in the docs page.The issue verified v34.1.0 (Traefik v3.3.2); I went to latest since, unlike CNPG, no consumer pins a version here — fountain's manifests just say
traefik.io/v1alpha1. All tentraefik.io_*.yamlfiles verified 200 at v41.1.0.Acceptance test
Reproduces fountain's
k8s/ingressroute.yaml— both routes. Two assertions exist because the failure mode is silent:redirect-httpslives indefault, the route infountain. Drop thenamespacequalifier and Traefik looks in the route's own namespace, finds nothing, applies no middleware, and serves the route anyway — plain HTTP keeps working instead of redirecting, with no error.Host(`fountain.inevitable.fyi`)are part of Traefik's matcher language, not YAML quoting. Anything that strips or re-quotes them yields a rule that parses and matches nothing.Verification
239 → 249 resources. No snapshot drift.
🤖 Generated with Claude Code
https://claude.ai/code/session_017jrdX8yZWxFayQpbpFFj1B