Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PathPrefix-based Routing #677

Merged
merged 7 commits into from
Jun 15, 2023
Merged

Conversation

t0rr3sp3dr0
Copy link
Contributor

@t0rr3sp3dr0 t0rr3sp3dr0 commented May 19, 2023

Implements routing based on a path prefix in addition to the host. A new .spec.pathPrefix field was created on HTTPScaledObject. When not specified, the routing behaviour is exactly the same as we had previously with hose-based routing.

Depends on: #669

Checklist

Fixes #338

@t0rr3sp3dr0 t0rr3sp3dr0 requested a review from a team as a code owner May 19, 2023 01:12
@t0rr3sp3dr0
Copy link
Contributor Author

Tests for this feature are coming in the next few days. I'll rebase with #669 when necessary until it gets merged.

@t0rr3sp3dr0
Copy link
Contributor Author

@similark, can you try this version and see if that works as you would expect? Just add set .spec.pathPrefix with the value you want:

apiVersion: http.keda.sh/v1alpha1
kind: HTTPScaledObject
spec:
  pathPrefix: /foo/bar
...

@similark
Copy link
Contributor

@t0rr3sp3dr0 I actually did the exact same thing and it works great.. I'll test your version today and update here soon.
Thanks!

@JorTurFer
Copy link
Member

JorTurFer commented May 26, 2023

Let's wait until this is merged for adding new e2e test for this new feature

@JorTurFer
Copy link
Member

I have merged #686
Please rebase your branch 🙏

@JorTurFer JorTurFer mentioned this pull request Jun 8, 2023
@andrey-bondar andrey-bondar mentioned this pull request Jun 11, 2023
3 tasks
Signed-off-by: Pedro Tôrres <[email protected]>
Signed-off-by: Pedro Tôrres <[email protected]>
Signed-off-by: Pedro Tôrres <[email protected]>
Signed-off-by: Pedro Tôrres <[email protected]>
Signed-off-by: Pedro Tôrres <[email protected]>
Signed-off-by: Pedro Tôrres <[email protected]>
Copy link
Member

@JorTurFer JorTurFer left a comment

Choose a reason for hiding this comment

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

Really nice improvement! ❤️
Small nits inline

tests/checks/path_prefix/path_prefix_test.go Outdated Show resolved Hide resolved
tests/helper/helper.go Outdated Show resolved Hide resolved
tests/run-all.go Outdated Show resolved Hide resolved
Signed-off-by: Pedro Tôrres <[email protected]>
Signed-off-by: Pedro Tôrres <[email protected]>
@JorTurFer JorTurFer enabled auto-merge (squash) June 15, 2023 10:15
@JorTurFer JorTurFer merged commit d333a0e into kedacore:main Jun 15, 2023
@similark
Copy link
Contributor

similark commented Jun 21, 2023

Don't we need to update the crd int the chart as well? @JorTurFer @t0rr3sp3dr0

Magnificent work @t0rr3sp3dr0! We'll start using this very soon

@JorTurFer
Copy link
Member

Yeah, I forgot that change, let me ship another version with this fixed

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.

Support routing and scaling based on path
3 participants