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

Migrate old Azure SDKs into to use github.com/Azure/azure-sdk-for-go/sdk/azidentity #5471

Open
wants to merge 23 commits into
base: main
Choose a base branch
from

Conversation

JorTurFer
Copy link
Member

@JorTurFer JorTurFer commented Feb 2, 2024

This PR has migrated some old Azure SDKs into the (unified) new one

  • EventHub: github.com/Azure/azure-event-hubs-go/v3 -> github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs
  • Blob Storage: github.com/Azure/azure-storage-blob-go -> github.com/Azure/azure-sdk-for-go/sdk/storage/azblob
  • Storage queues: github.com/Azure/azure-storage-queue-go -> github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue
  • Azure Key Vault: github.com/Azure/azure-sdk-for-go -> github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azsecrets
  • Azure Monitor: github.com/Azure/azure-sdk-for-go -> github.com/Azure/azure-sdk-for-go/sdk/monitor/azquery
  • Azure Log Analytics: no-sdk -> github.com/Azure/azure-sdk-for-go/sdk/monitor/azquery
  • Azure Data Explorer: github.com/Azure/azure-kusto-go/kusto uses github.com/Azure/azure-sdk-for-go/sdk/azidentity
  • Azure Application Insights: Currently it's not supported, I've opened and issue asking for it for migrating it in the future

Checklist

Fixes #5470

@JorTurFer
Copy link
Member Author

JorTurFer commented Feb 2, 2024

/run-e2e azure
Update: You can check the progress here

Comment on lines -158 to -167
meta.eventHubInfo.EventHubResourceURL = azure.DefaultEventhubResourceURL
if val, ok := config.TriggerMetadata["cloud"]; ok {
if strings.EqualFold(val, azure.PrivateCloud) {
if resourceURL, ok := config.TriggerMetadata["eventHubResourceURL"]; ok {
meta.eventHubInfo.EventHubResourceURL = resourceURL
} else {
return fmt.Errorf("eventHubResourceURL must be provided for %s cloud type", azure.PrivateCloud)
}
}
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't been able to find where is this used in the new SDK. From my understanding, this was used for requesting the tokens (we requested them using http client) and now the SDK manages it in a better way

@JorTurFer
Copy link
Member Author

JorTurFer commented Feb 2, 2024

/run-e2e azure
Update: You can check the progress here

@JorTurFer JorTurFer changed the title Migrate Azure EventHub and Azure Storage SDKs Migrate old Azure SDKs into github.com/Azure/azure-sdk-for-go Feb 2, 2024
@JorTurFer
Copy link
Member Author

JorTurFer commented Feb 2, 2024

/run-e2e azure
Update: You can check the progress here

@JorTurFer
Copy link
Member Author

JorTurFer commented Feb 2, 2024

/run-e2e azure
Update: You can check the progress here

@JorTurFer
Copy link
Member Author

JorTurFer commented Feb 2, 2024

/run-e2e azure
Update: You can check the progress here

@JorTurFer
Copy link
Member Author

JorTurFer commented Feb 2, 2024

/run-e2e azure
Update: You can check the progress here

@JorTurFer
Copy link
Member Author

JorTurFer commented Feb 6, 2024

/run-e2e azure
Update: You can check the progress here

@JorTurFer JorTurFer changed the title Migrate old Azure SDKs into github.com/Azure/azure-sdk-for-go Migrate old Azure SDKs into to use github.com/Azure/azure-sdk-for-go/sdk/azidentity Feb 6, 2024
@JorTurFer
Copy link
Member Author

JorTurFer commented Feb 6, 2024

/run-e2e azure
Update: You can check the progress here

@JorTurFer
Copy link
Member Author

JorTurFer commented Feb 6, 2024

/run-e2e azure
Update: You can check the progress here

@JorTurFer JorTurFer marked this pull request as ready for review February 13, 2024 21:08
@JorTurFer JorTurFer requested a review from a team as a code owner February 13, 2024 21:08
@JorTurFer
Copy link
Member Author

JorTurFer commented Feb 13, 2024

/run-e2e azure
Update: You can check the progress here

Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
@JorTurFer
Copy link
Member Author

JorTurFer commented Mar 30, 2024

/run-e2e azure
Update: You can check the progress here

@JorTurFer
Copy link
Member Author

JorTurFer commented Mar 30, 2024

/run-e2e azure
Update: You can check the progress here

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.

@JorTurFer what is the status on this please?

@JorTurFer
Copy link
Member Author

JorTurFer commented Apr 10, 2024

It's ready to merge from code pov (just pending to rebase main branch). But I think that waiting until v2.14 is released could be a good idea because I'm not 100% sure if I have dropped some AAD-Pod-Identity support and taking into account that v2.15 will remove AAD-Pod-Identity I'm more confident adding this after removing AAD-Pod-Identity.

@zroubalik
Copy link
Member

zroubalik commented Apr 10, 2024

It's ready to merge from code pov (just pending to rebase main branch). But I think that waiting until v2.14 is released could be a good idea because I'm not 100% sure if I have dropped some AAD-Pod-Identity support and taking into account that v2.15 will remove AAD-Pod-Identity I'm more confident adding this after removing AAD-Pod-Identity.

Okay, sounds good!

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.

Migrate Azure Event Hub and Storage to the new SDK
2 participants