Skip to content

Commit 3732fd9

Browse files
authored
Merge pull request #425 from andyzhangx/upgrade-azure-libx
chore: upgrade azure lib
2 parents f426089 + 3491808 commit 3732fd9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+2460
-856
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module sigs.k8s.io/blob-csi-driver
33
go 1.16
44

55
require (
6-
github.com/Azure/azure-sdk-for-go v53.1.0+incompatible
6+
github.com/Azure/azure-sdk-for-go v54.1.0+incompatible
77
github.com/Azure/go-autorest/autorest v0.11.17
88
github.com/Azure/go-autorest/autorest/adal v0.9.10
99
github.com/container-storage-interface/spec v1.3.0
@@ -64,5 +64,5 @@ replace (
6464
k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.21.0
6565
k8s.io/sample-cli-plugin => k8s.io/sample-cli-plugin v0.21.0
6666
k8s.io/sample-controller => k8s.io/sample-controller v0.21.0
67-
sigs.k8s.io/cloud-provider-azure => sigs.k8s.io/cloud-provider-azure v0.7.4-0.20210512011340-c48dea83dfbe
67+
sigs.k8s.io/cloud-provider-azure => sigs.k8s.io/cloud-provider-azure v0.7.4-0.20210513142225-eef91820946e
6868
)

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohl
2525
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
2626
dmitri.shuralyov.com/gpu/mtl v0.0.0-20201218220906-28db891af037/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
2727
github.com/Azure/azure-sdk-for-go v43.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
28-
github.com/Azure/azure-sdk-for-go v53.1.0+incompatible h1:f2h0KLVGa3zIaMDMHBe5Lazc0FT5+L78z0B8K9PmDyg=
29-
github.com/Azure/azure-sdk-for-go v53.1.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
28+
github.com/Azure/azure-sdk-for-go v54.1.0+incompatible h1:vCRLxG2d7KIdhVodEk+0ki4lVYr0GvtjOgJaAk6fs9Y=
29+
github.com/Azure/azure-sdk-for-go v54.1.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
3030
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8=
3131
github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK/vTfRHdAubSIPRgs=
3232
github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24=
@@ -968,8 +968,8 @@ rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
968968
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
969969
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.15 h1:4uqm9Mv+w2MmBYD+F4qf/v6tDFUdPOk29C095RbU5mY=
970970
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.15/go.mod h1:LEScyzhFmoF5pso/YSeBstl57mOzx9xlU9n85RGrDQg=
971-
sigs.k8s.io/cloud-provider-azure v0.7.4-0.20210512011340-c48dea83dfbe h1:IiNCY2qw8r9J8J0PiJ4rvG4JrP8zwdJ4qcRt15w89gQ=
972-
sigs.k8s.io/cloud-provider-azure v0.7.4-0.20210512011340-c48dea83dfbe/go.mod h1:wt7ijmWLw2zKIqr2Ncjtgjc/b0uWOqrS5BeXy5AAsio=
971+
sigs.k8s.io/cloud-provider-azure v0.7.4-0.20210513142225-eef91820946e h1:WvfOGKrst2JID0oDjhmB0s9SVJbtzFPlLx4XvGtuFKI=
972+
sigs.k8s.io/cloud-provider-azure v0.7.4-0.20210513142225-eef91820946e/go.mod h1:tVaahhbgqUi1GEIG9uKjAt/MgiLZCfqw9erMIvMK4dA=
973973
sigs.k8s.io/kustomize/api v0.8.5/go.mod h1:M377apnKT5ZHJS++6H4rQoCHmWtt6qTpp3mbe7p6OLY=
974974
sigs.k8s.io/kustomize/cmd/config v0.9.7/go.mod h1:MvXCpHs77cfyxRmCNUQjIqCmZyYsbn5PyQpWiq44nW0=
975975
sigs.k8s.io/kustomize/kustomize/v4 v4.0.5/go.mod h1:C7rYla7sI8EnxHE/xEhRBSHMNfcL91fx0uKmUlUhrBk=

pkg/blob/blob_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
"reflect"
2626
"testing"
2727

28-
"github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage"
28+
"github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2021-02-01/storage"
2929
"github.com/golang/mock/gomock"
3030
"github.com/stretchr/testify/assert"
3131

pkg/blob/controllerserver.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"google.golang.org/grpc/codes"
2525
"google.golang.org/grpc/status"
2626

27-
"github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage"
27+
"github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2021-02-01/storage"
2828
azstorage "github.com/Azure/azure-sdk-for-go/storage"
2929
"github.com/container-storage-interface/spec/lib/go/csi"
3030

@@ -120,14 +120,14 @@ func (d *Driver) CreateVolume(ctx context.Context, req *csi.CreateVolumeRequest)
120120
storeAccountKey = storeAccountKeyFalse
121121
}
122122

123-
accountKind := string(storage.StorageV2)
123+
accountKind := string(storage.KindStorageV2)
124124
if strings.HasPrefix(strings.ToLower(storageAccountType), "premium") {
125-
accountKind = string(storage.BlockBlobStorage)
125+
accountKind = string(storage.KindBlockBlobStorage)
126126
}
127127
if IsAzureStackCloud(d.cloud) {
128-
accountKind = string(storage.Storage)
129-
if storageAccountType != "" && storageAccountType != string(storage.StandardLRS) && storageAccountType != string(storage.PremiumLRS) {
130-
return nil, status.Errorf(codes.InvalidArgument, fmt.Sprintf("Invalid skuName value: %s, as Azure Stack only supports %s and %s Storage Account types.", storageAccountType, storage.PremiumLRS, storage.StandardLRS))
128+
accountKind = string(storage.KindStorage)
129+
if storageAccountType != "" && storageAccountType != string(storage.SkuNameStandardLRS) && storageAccountType != string(storage.SkuNamePremiumLRS) {
130+
return nil, status.Errorf(codes.InvalidArgument, fmt.Sprintf("Invalid skuName value: %s, as Azure Stack only supports %s and %s Storage Account types.", storageAccountType, storage.SkuNamePremiumLRS, storage.SkuNameStandardLRS))
131131
}
132132
}
133133

pkg/blob/controllerserver_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
"google.golang.org/grpc/codes"
2626
"google.golang.org/grpc/status"
2727

28-
"github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage"
28+
"github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2021-02-01/storage"
2929
"github.com/container-storage-interface/spec/lib/go/csi"
3030
"github.com/golang/mock/gomock"
3131
"github.com/stretchr/testify/assert"

vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2020-12-01/compute/CHANGELOG.md

Lines changed: 1 addition & 147 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2020-12-01/compute/_meta.json

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)