Skip to content

Commit 9da120b

Browse files
committed
use a random version api
1 parent 169cf22 commit 9da120b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: pkg/mount-manager/safe-mounter_windows.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ type CSIProxyMounter struct {
5252

5353
func getDiskClient() (*diskclient.Client, error) {
5454
var err error
55+
version2 := apiversion.NewVersionOrPanic("v2")
5556
versionv1beta2 := apiversion.NewVersionOrPanic("v1beta2")
56-
diskAPIVersions := []apiversion.Version{diskclient.Version, versionv1beta2}
57+
diskAPIVersions := []apiversion.Version{version2, versionv1beta2}
5758

5859
// attempt to connect to one of the clients in order
5960
for _, apiVersion := range diskAPIVersions {

0 commit comments

Comments
 (0)