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

feat: provide support to allow HTTP scaler to work alongside other core KEDA scalers #929

Merged
merged 2 commits into from
Mar 26, 2024

Conversation

devopsdynamo
Copy link
Contributor

@devopsdynamo devopsdynamo commented Feb 22, 2024

This change provides support to allow HTTP scaler to work alongside other core KEDA scalers by allowing skipScaledObjectCreation annotation to be set on an HTTPScaledObject. This will ensure the reconciler to skip the KEDA core ScaledObjects creation which alllows you to create and manage your own ScaledObject with addtional triggers.

Checklist

Fixes #

@tomkerkhove
Copy link
Member

Hey, mind sharing some samples on what that would look like? Is the problem that you'd otherwise have 2 scaledobjects or?

@devopsdynamo
Copy link
Contributor Author

@tomkerkhove Yeah the problem we have at the moment is that we already have a scaledobject with a kafka trigger added for scaling but we also have a requirement to add HTTP scaling to the same deployment so we can scale up on http requests also. This change will allow you to add skip annotation on the HTTPSO so you can add the external-push trigger to your existing scaledobject as an additional trigger etc.

@JorTurFer
Copy link
Member

I like the solution but I'm worried about how this will scale in the future. Currently, we support hosts and prefixes properties within external scaler metadata but maybe we need more info in the future.
I'm thinking that maybe we should replace them with the HTTPScaledObject name instead, but it enforces the scaler to know about the HTTPScaledObject and permissions for pulling them to selfconfigure it :(
WDYT @tomkerkhove ?

docs/walkthrough.md Outdated Show resolved Hide resolved
operator/controllers/http/app.go Outdated Show resolved Hide resolved
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.

Awesome contribution ❤️
Just small feedback inline

@JorTurFer
Copy link
Member

@devopsdynamo devopsdynamo force-pushed the main branch 4 times, most recently from 00ebf1b to 5020b67 Compare March 11, 2024 13:44
@JorTurFer
Copy link
Member

We need to fix the DCO check too, you can check the steps just clicking the link:
image

@devopsdynamo devopsdynamo force-pushed the main branch 2 times, most recently from 0a783d7 to a84c63f Compare March 13, 2024 08:30
Copy link
Member

@tomkerkhove tomkerkhove left a comment

Choose a reason for hiding this comment

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

Good guide, added a few suggestion!

docs/walkthrough.md Outdated Show resolved Hide resolved
docs/walkthrough.md Outdated Show resolved Hide resolved
docs/walkthrough.md Outdated Show resolved Hide resolved
docs/walkthrough.md Show resolved Hide resolved
docs/walkthrough.md Outdated Show resolved Hide resolved
docs/walkthrough.md Outdated Show resolved Hide resolved
@JorTurFer
Copy link
Member

There are also some linting errors, could you take a look? https://github.com/kedacore/http-add-on/actions/runs/8261625169/job/22724018316?pr=929

@devopsdynamo devopsdynamo force-pushed the main branch 2 times, most recently from 278bbc0 to b051c76 Compare March 18, 2024 09:30
@devopsdynamo
Copy link
Contributor Author

@tomkerkhove updated docs as per your suggestions, thanks. @JorTurFer lint errors should be fixed now also, my bad :)

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Member

@tomkerkhove tomkerkhove left a comment

Choose a reason for hiding this comment

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

Nits

docs/walkthrough.md Show resolved Hide resolved
docs/walkthrough.md Outdated Show resolved Hide resolved
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.

LGTM! Just the change in the changelog and we are ready to merge this! ❤️

…re KEDA scalers

Signed-off-by: Paul Cooke <Paul.Cooke@10xbanking.com>
@devopsdynamo
Copy link
Contributor Author

LGTM! Just the change in the changelog and we are ready to merge this! ❤️

Updated as requested

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.

Awesome contribution! Thanks for it ❤️

@JorTurFer JorTurFer enabled auto-merge (squash) March 26, 2024 18:16
@JorTurFer JorTurFer merged commit 5b3063e into kedacore:main Mar 26, 2024
19 checks passed
@JorTurFer JorTurFer mentioned this pull request Apr 3, 2024
19 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.

4 participants