-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add PredictKube scaler #2418
Add PredictKube scaler #2418
Conversation
220bef3
to
6f13c7b
Compare
739d506
to
8ee4fb3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First, thanks a lot for this contribution ❤️
There are some topics that I commented in the code and apart from those, there are 2 global points:
- Add e2e tests for the scaler (we could add needed secrets if you need)
- Use
s
for referring the scaler instead ofpkg
. The majority if the scalers uses
and it gives consistency across them.
And again, thanks a lot for this ❤️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to the concerns raised by @JorTurFer
I will add one thing, would be nice to describe the architecture a little bit, ie. what is happenning under the hood, since this is not a standard scaler. The best thing is to open an issue and describe it there. And cover this in the docs as well.
9f374a8
to
f48aeb8
Compare
8b7c520
to
1ba8a63
Compare
Signed-off-by: Daniel Yavorovych <[email protected]>
ae7489b
to
efd1913
Compare
Signed-off-by: alex60217101990 <[email protected]>
Signed-off-by: alex60217101990 <[email protected]>
Signed-off-by: alex60217101990 <[email protected]>
Signed-off-by: alex60217101990 <[email protected]>
Signed-off-by: alex60217101990 <[email protected]>
Signed-off-by: alex60217101990 <[email protected]>
Signed-off-by: alex60217101990 <[email protected]>
add auth logic for prometheus and predictkube scalers
Update from upstream
Update from upstream
Signed-off-by: alex60217101990 <[email protected]>
Fix PR comments
Signed-off-by: alex60217101990 <[email protected]>
fix TestPredictKubeParseMetadata
Signed-off-by: alex60217101990 <[email protected]>
fix TestPredictKubeGetMetricSpecForScaling
There are 20 vulnerabilities in various dependencies brought through |
I think that a better way would be actually not implement enums via that library (so it doesn't have to be included) and use more standard/idiomatic golang way. If I am not mistaken, that is the only place where this dependency is being used. |
Signed-off-by: alex60217101990 <[email protected]>
Signed-off-by: alex60217101990 <[email protected]>
Fix pr comments
Signed-off-by: alex60217101990 <[email protected]>
# Conflicts: # go.mod # go.sum
Signed-off-by: alex60217101990 <[email protected]>
Signed-off-by: alex60217101990 <[email protected]>
Signed-off-by: alex60217101990 <[email protected]>
We have implemented enum with golang standard way, thank you. |
Signed-off-by: alex60217101990 <[email protected]>
/run-e2e predictkube* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the contribution, it is looking great!
@daniel-yavorovich @alex60217101990 could you please resolve the outstanding issues in docs pr so we can go ahead and merge this one? Thanks! |
Signed-off-by: Daniel Yavorovych <[email protected]> Signed-off-by: alex60217101990 <[email protected]>
Signed-off-by: Daniel Yavorovych <[email protected]> Signed-off-by: alex60217101990 <[email protected]> Signed-off-by: Mark Rzasa <[email protected]>
Signed-off-by: Daniel Yavorovych <[email protected]> Signed-off-by: alex60217101990 <[email protected]>
author Mark Rzasa <[email protected]> 1642970493 -0500 committer Mark Rzasa <[email protected]> 1643317483 -0500 app insights scaler Signed-off-by: Mark Rzasa <[email protected]> Add PredictKube scaler (kedacore#2418) Signed-off-by: Daniel Yavorovych <[email protected]> Signed-off-by: alex60217101990 <[email protected]> bump deps (kedacore#2563) Signed-off-by: Zbynek Roubalik <[email protected]> Clear scalers cache correctly both in Operator and Metrics Server (kedacore#2564) Signed-off-by: Zbynek Roubalik <[email protected]> test: Provide e2e secrets for Azure Application Insights scaler (kedacore#2568) Signed-off-by: Tom Kerkhove <[email protected]>
author Mark Rzasa <[email protected]> 1642970493 -0500 committer Mark Rzasa <[email protected]> 1643317483 -0500 app insights scaler Signed-off-by: Mark Rzasa <[email protected]> Add PredictKube scaler (kedacore#2418) Signed-off-by: Daniel Yavorovych <[email protected]> Signed-off-by: alex60217101990 <[email protected]> bump deps (kedacore#2563) Signed-off-by: Zbynek Roubalik <[email protected]> Clear scalers cache correctly both in Operator and Metrics Server (kedacore#2564) Signed-off-by: Zbynek Roubalik <[email protected]> test: Provide e2e secrets for Azure Application Insights scaler (kedacore#2568) Signed-off-by: Tom Kerkhove <[email protected]> Signed-off-by: Mark Rzasa <[email protected]>
This PR adds a new PredictKube scaler, ready-to-use for the community.
PredictKube - is a tool for proactive scaling based on the AI model’s prediction.
Related docs PR: kedacore/keda-docs#617
This is an example of what the TriggerAuthentication and the ScaledObject definitions would look like:
Checklist
Related to #197, #2401
Fixes #2458