-
Notifications
You must be signed in to change notification settings - Fork 155
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
Update Azure SDK Libraries in Kanister #2326
Conversation
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.
I know this is WIP. Providing some early feedback
go.mod
Outdated
require ( | ||
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.3.1 // indirect | ||
github.com/AzureAD/microsoft-authentication-library-for-go v1.2.0 // indirect | ||
github.com/golang-jwt/jwt/v5 v5.0.0 // indirect | ||
github.com/kylelemons/godebug v1.1.0 // indirect | ||
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect | ||
) |
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.
We should move this into the group of indirect modules above
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.
Addressed
pkg/blockstorage/azure/azuredisk.go
Outdated
azcompute "github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2019-03-01/compute" | ||
"github.com/Azure/azure-sdk-for-go/storage" | ||
azto "github.com/Azure/go-autorest/autorest/to" | ||
helper "github.com/kanisterio/kanister/pkg/blockstorage" |
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.
helper "github.com/kanisterio/kanister/pkg/blockstorage" |
This is not required. It's already imported on line 24. You can replace helper.*
to blockstorage.*
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.
Addressed.
pkg/blockstorage/azure/client.go
Outdated
"github.com/Azure/go-autorest/autorest" | ||
"github.com/Azure/go-autorest/autorest/azure/auth" |
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.
Looks like VSCode added these back. The client code could still be using these libraries.
f654795
to
5c4b810
Compare
Signed-off-by: mabhi <abhijit.mukherjee@infracloud.io>
Signed-off-by: mabhi <abhijit.mukherjee@infracloud.io>
Signed-off-by: mabhi <abhijit.mukherjee@infracloud.io>
Signed-off-by: mabhi <abhijit.mukherjee@infracloud.io>
Signed-off-by: mabhi <abhijit.mukherjee@infracloud.io>
Signed-off-by: mabhi <abhijit.mukherjee@infracloud.io>
f929bca
to
b853319
Compare
moving to #2368 |
Change Overview
As per Azure guidelines, few modules from azure library are retiring support from 31 March 2023 . Due to which there is need to replace such modules with azure recommended azure-go-sdk modules.
go-autorest
being used in theblockstorage
package will be out of support from March 2023. Follow the documentation below to replace it with a new supported package.https://azure.microsoft.com/en-us/updates/support-for-azure-sdk-libraries-that-do-not-conform-to-our-current-azure-sdk-guidelines-will-be-retired-as-of-31-march-2023/
Pull request type
Please check the type of change your PR introduces:
Issues
Test Plan