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

[v2] Added Azure Log Analytics scaler #1085

Merged
merged 12 commits into from
Sep 10, 2020
Merged

[v2] Added Azure Log Analytics scaler #1085

merged 12 commits into from
Sep 10, 2020

Conversation

spoplavskiy
Copy link
Contributor

@spoplavskiy spoplavskiy commented Sep 4, 2020

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

Signed-off-by: Sergiy Poplavskyi <spopla@microsoft.com>
…andler.go, so it in alphabetical order now

Signed-off-by: Sergiy Poplavskyi <spopla@microsoft.com>
@spoplavskiy spoplavskiy changed the title Added Azure Log Analytics scaler [v2] Added Azure Log Analytics scaler Sep 4, 2020
@tomkerkhove
Copy link
Member

Can you update https://github.com/kedacore/keda/blob/v2/CHANGELOG.md as well please?

Signed-off-by: Sergiy Poplavskyi <spopla@microsoft.com>
@spoplavskiy
Copy link
Contributor Author

Can you update https://github.com/kedacore/keda/blob/v2/CHANGELOG.md as well please?

@tomkerkhove , thanks for pointing, added in last commit

@spoplavskiy spoplavskiy closed this Sep 7, 2020
@spoplavskiy spoplavskiy reopened this Sep 7, 2020
Copy link
Member

@zroubalik zroubalik left a 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?

https://github.com/kedacore/keda/tree/v2/tests

@spoplavskiy
Copy link
Contributor Author

@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?

https://github.com/kedacore/keda/tree/v2/tests

@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.

@zroubalik
Copy link
Member

Great! I think that @ahmelsayed or @jeffhollan could help you with that

Signed-off-by: Sergiy Poplavskyi <spopla@microsoft.com>
@spoplavskiy
Copy link
Contributor Author

Great! I think that @ahmelsayed or @jeffhollan could help you with that

@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.

@tomkerkhove
Copy link
Member

Great! I think that @ahmelsayed or @jeffhollan could help you with that

@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!

@zroubalik
Copy link
Member

@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>
@spoplavskiy
Copy link
Contributor Author

spoplavskiy commented Sep 9, 2020

@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.

@zroubalik , done.

Signed-off-by: Sergiy Poplavskyi <spopla@microsoft.com>
Signed-off-by: Sergiy Poplavskyi <spopla@microsoft.com>
Copy link
Member

@zroubalik zroubalik left a 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>
@spoplavskiy
Copy link
Contributor Author

Minor nits on logging

@zroubalik , thanks for pointing. All your suggestions has been implemented in last commit.

@ahmelsayed
Copy link
Contributor

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>
@spoplavskiy
Copy link
Contributor Author

I added the required secret to the pipeline. Just have a couple of minor comments on the PR.

@ahmelsayed , thanks!

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