-
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
Support non-public cloud environments in the Azure Storage Queue and Azure Storage Blob scalers #1863
Conversation
Signed-off-by: amirschw <24677563+amirschw@users.noreply.github.com>
.NET has an enum that allows you to define the type and get the suffix automatically, isn't there a similar feature in Go? |
Signed-off-by: amirschw <24677563+amirschw@users.noreply.github.com>
Signed-off-by: amirschw <24677563+amirschw@users.noreply.github.com>
Thanks for the comment @tomkerkhove, I couldn't find something quite like that in the Azure SDK for Go, but did implement a similar method for the |
Signed-off-by: amirschw <24677563+amirschw@users.noreply.github.com>
Fine by me, I've opened Azure/azure-storage-queue-go#25 to see if this can be simplified. |
Oh, now I get that you meant the type of cloud. This could have helped to simplify things if it wasn't for some air-gapped cloud environments, where the endpoint suffix cannot be made public. For those environments, I believe that users will have to provide the endpoint suffix themselves. |
I think the sweet spot is both where If it's stack or airgapped, then they use What do you think? |
I like that, thanks! I'll work on the necessary changes: adding an optional |
Sounds good to me! I would personally go with Private but I'm open to anything |
Signed-off-by: amirschw <24677563+amirschw@users.noreply.github.com>
Signed-off-by: amirschw <24677563+amirschw@users.noreply.github.com>
Signed-off-by: amirschw <24677563+amirschw@users.noreply.github.com>
Is there a reason why we are changing the Azure Event Hubs scaler? Because not all parts seem to be aligned? |
The Event Hub scaler uses |
While this PR partially fixes #1285, there is still work to be done to support Government and other non-public clouds in the rest of the Azure scalers (Azure Event Bub, Azure Log Analytics, Azure Monitor, Azure Service Bus). I'm not sure I'll have the capacity to add this to all of them, but will try to find time to set up another PR (at least for the Service Bus scaler which is used by our team :)). |
No problem at all, you're already doing a ton of work! Feel free to open issues for the others so we can add them eventually! |
Would you mind resolving the merge conflict please? Then @zroubalik can do a review. |
Resolved the merge conflicts and ready for review 😄 |
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 @amirschw!
…Azure Storage Blob scalers (kedacore#1863) Signed-off-by: nilayasiktoprak <nilayasiktoprak@gmail.com>
Introduce an optional
cloud
parameter to the Azure Storage Queue and Azure Storage Blob scalers to support non-public Azure clouds.cloud
can be set to one of the known Azure clouds, or toPrivate
. When set toPrivate
, theendpointSuffix
parameter must also be provided. Otherwise, the endpoint suffix is inferred from the cloud environment.PR for updating the documentation: kedacore/keda-docs#463
Fixes (partially) #1285.
Checklist
Signed-off-by: amirschw 24677563+amirschw@users.noreply.github.com