-
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
feat(Scaler): Adds Loki Scaler #3700
Conversation
Signed-off-by: Neelanjan Manna <[email protected]>
Signed-off-by: Neelanjan Manna <[email protected]>
Signed-off-by: Neelanjan Manna <[email protected]>
Signed-off-by: Neelanjan Manna <[email protected]>
Signed-off-by: Neelanjan Manna <[email protected]>
Signed-off-by: Neelanjan Manna <[email protected]>
Signed-off-by: Neelanjan Manna <[email protected]>
Signed-off-by: Neelanjan Manna <[email protected]>
Signed-off-by: Neelanjan Manna <[email protected]>
Signed-off-by: Neelanjan Manna <[email protected]>
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 ton for this awesome contribution! 🙇
In general looks good, I have left some comments inline. Apart from that, could you add an e2e test for this scaler?
All e2e test are in /tests
folder and there is also a readme explaining how to add them :)
… tenant name field Signed-off-by: Neelanjan Manna <[email protected]>
Signed-off-by: Neelanjan Manna <[email protected]>
Signed-off-by: Neelanjan Manna <[email protected]>
Signed-off-by: Neelanjan Manna <[email protected]>
Hi @JorTurFer, thanks for reviewing the PR, I have resolved all the points that you commented upon. Regarding the addition of an E2E suite for the scaler, I have been trying to understand how it can be achieved by taking reference from the other scaler's tests and the provided README. While I have a rudimentary idea of how it can be done for Loki scaler, I would still like to discuss it through first. Here's what I have understood so far regarding the pre-requisites:
The logic of the test is about validating whether activation/scale-up/scale-down is occurring or not. Based on my understanding I have a few doubts:
|
There are several e2e test were resources are installed/removed during the tests, for instance in this test we install/remove Hashicorp Vault. |
WRT the e2e test itself, you are right, the process should be something like:
You can check any already existing e2e test to validate the process or ping us if you have any doubt 😄 |
By the way, there are still some kustomization / generated files that are edited in this PR. |
Signed-off-by: Neelanjan Manna <[email protected]>
Signed-off-by: Neelanjan Manna <[email protected]>
Signed-off-by: Neelanjan Manna <[email protected]>
Hey @JorTurFer, thank you so much for all the helpful feedback. I should mention that this PR is still a WIP, still trying to get the E2E to work, it's failing due to some mysterious FQDN issue. I will slowly resolve all of the issues by the end of this week (hopefully). Thank you so much once again for all the help! 🙏🏽 |
…dded create namespace function, minor fixes Signed-off-by: Neelanjan Manna <[email protected]>
Signed-off-by: Neelanjan Manna <[email protected]>
Resolved all the issues. However still facing issues with the execution of the E2E test itself: I am able to use the scaler otherwise manually, but when run through E2E, the test application doesn't scale up. I have checked for all the possible causes that may be responsible but in vain, including the operator pod logs and metrics-server pod logs. What would you suggest, @JorTurFer? |
Attaching E2E logs for reference. |
/run-e2e loki* |
Were you able to check the scaling manually @neelanjan00? |
Yes I am able to run the scaler manually. |
I have reviewed the execution log and there isn't any error so I guess that the issue is in the e2e test logic side. Let me pull your code and take a look deeper |
…he substring being searched in the query Signed-off-by: Neelanjan Manna <[email protected]>
Signed-off-by: Neelanjan Manna <[email protected]>
Signed-off-by: Neelanjan Manna <[email protected]>
/run-e2e loki* |
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.
Looking good, only some nits inline
…rmalization Signed-off-by: Neelanjan Manna <[email protected]>
Signed-off-by: Neelanjan Manna <[email protected]>
/run-e2e loki* |
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 this awesome contribution!
Let's wait till @zroubalik or @v-shenoy takes a look too
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.
I am not an expert when it comes to Loki, but LGTM. Nice work!
Left some minor comments on the docs PR.
Thanks for the review, I have updated the docs PR as well based on your comments. |
Signed-off-by: 26tanishabanik <[email protected]>
Provide a description of what has been changed
Checklist
Relates to #3699
Relates to kedacore/keda-docs#948