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

Support non-public clouds for Microsoft Azure #1285

Closed
10 tasks done
djj0809 opened this issue Oct 23, 2020 · 10 comments
Closed
10 tasks done

Support non-public clouds for Microsoft Azure #1285

djj0809 opened this issue Oct 23, 2020 · 10 comments
Assignees
Labels
azure All issues concerning integration with Azure Epic feature All issues for new features that have been committed to good first issue Good for newcomers help wanted Looking for support from community

Comments

@djj0809
Copy link

djj0809 commented Oct 23, 2020

The resource name and the queue endpoint suffix should be configurable in triggers.

func ParseAzureStorageQueueConnection(podIdentity, connectionString, accountName string) (azqueue.Credential, *url.URL, error) {
switch podIdentity {
case "azure":
token, err := GetAzureADPodIdentityToken("https://storage.azure.com/")
if err != nil {
return nil, nil, err
}
if accountName == "" {
return nil, nil, fmt.Errorf("accountName is required for podIdentity azure")
}
credential := azqueue.NewTokenCredential(token.AccessToken, nil)
endpoint, _ := url.Parse(fmt.Sprintf("https://%s.queue.core.windows.net", accountName))
return credential, endpoint, nil
case "", "none":
endpoint, accountName, accountKey, err := parseAzureStorageConnectionString(connectionString, QueueEndpoint)
if err != nil {
return nil, nil, err
}
credential, err := azqueue.NewSharedKeyCredential(accountName, accountKey)
if err != nil {
return nil, nil, err
}
return credential, endpoint, nil
default:
return nil, nil, fmt.Errorf("azure queues doesn't support %s pod identity type", podIdentity)
}
}

Task List

@djj0809 djj0809 added the bug Something isn't working label Oct 23, 2020
@zroubalik
Copy link
Member

@djj0809 are you willing to contribute this?

@djj0809
Copy link
Author

djj0809 commented Oct 23, 2020 via email

@zroubalik zroubalik added good first issue Good for newcomers Hacktoberfest help wanted Looking for support from community labels Oct 23, 2020
@tomkerkhove tomkerkhove added the azure All issues concerning integration with Azure label Oct 26, 2020
@tomkerkhove
Copy link
Member

Might be something interesting for @ahmelsayed @jeffhollan

@JonasMatos0
Copy link
Contributor

Hi, @djj0809 .

Can you please detail with examples what are the changes related to the Azure National clouds that are not supported on current scaler config implementation?

I'm planning on helping on this issues as soon as I get these details.

@tomkerkhove
Copy link
Member

Thank you @amirschw!

@tomkerkhove
Copy link
Member

Re-opening as we didn't cover all Azure scalers yet I think

@amirschw
Copy link
Contributor

amirschw commented Jun 9, 2021

Indeed. Left to cover:

  • Azure Event Bub
  • Azure Log Analytics
  • Azure Monitor
  • Azure Service Bus

Azure Pipelines is only supported in public cloud AFAIK, so it's probably out of scope.

@stale
Copy link

stale bot commented Oct 13, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale All issues that are marked as stale due to inactivity label Oct 13, 2021
@tomkerkhove
Copy link
Member

/keep-alive

This is still on-going

@stale stale bot removed the stale All issues that are marked as stale due to inactivity label Oct 14, 2021
@v-shenoy
Copy link
Contributor

I can take these up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
azure All issues concerning integration with Azure Epic feature All issues for new features that have been committed to good first issue Good for newcomers help wanted Looking for support from community
Projects
Archived in project
Development

No branches or pull requests

8 participants