Skip to content

fix(serviceoffer): split inFlightReq and rateLimit middlewares#759

Merged
bussyjd merged 1 commit into
integration/v0.14.0-rc0from
fix/limits-middleware-split
Jul 15, 2026
Merged

fix(serviceoffer): split inFlightReq and rateLimit middlewares#759
bussyjd merged 1 commit into
integration/v0.14.0-rc0from
fix/limits-middleware-split

Conversation

@bussyjd

@bussyjd bussyjd commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

--max-in-flight + --rps generated a single Traefik Middleware with both inFlightReq and rateLimit. Traefik rejects that combination, but the ServiceOffer still reached Ready.

Now each limit is its own Middleware CR (+ ExtensionRef). Legacy so-*-limits CRs are deleted on reconcile.

Test plan

  • go test ./internal/serviceoffercontroller/ -run TestBuildLimits
  • Live: obol sell http … --max-in-flight 4 --rps 10 and confirm two Middleware CRs accepted by Traefik

Part of v0.14.0-rc0 hackathon bugfix train.

…iddlewares

Combining --max-in-flight and --rps produced one Middleware CR with both
types; Traefik rejected it while the offer still reported Ready. Emit one
CR per type, attach both ExtensionRefs, and delete the legacy -limits CR.
@bussyjd
bussyjd merged commit 3fe2ae8 into integration/v0.14.0-rc0 Jul 15, 2026
@bussyjd bussyjd mentioned this pull request Jul 15, 2026
6 tasks
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.

1 participant