-
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
[v2] Added Azure Log Analytics scaler #1085
Conversation
Signed-off-by: Sergiy Poplavskyi <spopla@microsoft.com>
…andler.go, so it in alphabetical order now Signed-off-by: Sergiy Poplavskyi <spopla@microsoft.com>
Can you update https://github.com/kedacore/keda/blob/v2/CHANGELOG.md as well please? |
Signed-off-by: Sergiy Poplavskyi <spopla@microsoft.com>
@tomkerkhove , thanks for pointing, added in last commit |
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.
@spoplavskiy thanks for the contribution! I don't feel confident enough to review Azure related scalers, will keep it for the others. But I wonder whether it is doable to add e2e test for this type of scaler?
@zroubalik , yes, I can try. The thing is, that Log Analytics workspace should be created on Azure subscription, used by your build pipeline. Also, a Service Principal should have access to this workspace. I see in ".env", that there is variables, related to Service Principal. Can I introduce "TEST_LOG_ANALYTICS_WORKSPACE_ID" variable? I will commit empty value (same, as others), but it should be created and added in Build Pipeline. |
Great! I think that @ahmelsayed or @jeffhollan could help you with that |
Signed-off-by: Sergiy Poplavskyi <spopla@microsoft.com>
@zroubalik , I have added E2E tests from Log Analytics scaler. Also, added support for 'FromEnv' definitions. I had a conversation with @ahmelsayed, provided him all required scripts to create LA workspace and grant access to Service Principal on subscription, used for tests. |
Thanks @spoplavskiy! |
@spoplavskiy this is great, e2e tests are really important, thanks! I'll keep the final review on @ahmelsayed Just a minor nit, could you please rebase the PR, there's a conflict in the Changelog. |
Signed-off-by: Sergiy Poplavskyi <spopla@microsoft.com>
Signed-off-by: Sergiy Poplavskyi <spopla@microsoft.com>
@zroubalik , done. |
Signed-off-by: Sergiy Poplavskyi <spopla@microsoft.com>
Signed-off-by: Sergiy Poplavskyi <spopla@microsoft.com>
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.
Minor nits on logging
Signed-off-by: Sergiy Poplavskyi <spopla@microsoft.com>
@zroubalik , thanks for pointing. All your suggestions has been implemented in last commit. |
I added the required secret to the pipeline. Just have a couple of minor comments on the PR. |
Signed-off-by: Sergiy Poplavskyi <spopla@microsoft.com>
@ahmelsayed , thanks! |
Checklist
This Scaler related to Feature Request 1061
It implements all features and use-cases described there.
Signed-off-by: Sergiy Poplavskyi spopla@microsoft.com