Skip to content

Commit bb85bf7

Browse files
committed
chore: move to csi-v1.3.0
1 parent e19e97e commit bb85bf7

File tree

6 files changed

+1219
-806
lines changed

6 files changed

+1219
-806
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
github.com/Azure/go-autorest/autorest/adal v0.8.3
99
github.com/Azure/go-autorest/autorest/to v0.3.0
1010
github.com/Azure/go-autorest/autorest/validation v0.1.0 // indirect
11-
github.com/container-storage-interface/spec v1.2.0
11+
github.com/container-storage-interface/spec v1.3.0
1212
github.com/golang/protobuf v1.3.5
1313
github.com/kubernetes-csi/csi-proxy/client v0.0.0-20200330215040-9eff16441b2a
1414
github.com/pborman/uuid v1.2.0
@@ -82,7 +82,7 @@ replace (
8282
github.com/clusterhq/flocker-go => github.com/clusterhq/flocker-go v0.0.0-20160920122132-2b8b7259d313
8383
github.com/cockroachdb/datadriven => github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa
8484
github.com/codegangsta/negroni => github.com/codegangsta/negroni v1.0.0
85-
github.com/container-storage-interface/spec => github.com/container-storage-interface/spec v1.1.0
85+
github.com/container-storage-interface/spec => github.com/container-storage-interface/spec v1.3.0
8686
github.com/containerd/console => github.com/containerd/console v0.0.0-20170925154832-84eeaae905fa
8787
github.com/containerd/containerd => github.com/containerd/containerd v1.0.2
8888
github.com/containerd/typeurl => github.com/containerd/typeurl v0.0.0-20190228175220-2a93cfde8c20

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRF
3131
github.com/beorn7/perks v1.0.0 h1:HWo1m869IqiPhD389kmkxeTalrjNbbJTC8LXupb+sl0=
3232
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
3333
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
34-
github.com/container-storage-interface/spec v1.1.0 h1:qPsTqtR1VUPvMPeK0UnCZMtXaKGyyLPG8gj/wG6VqMs=
35-
github.com/container-storage-interface/spec v1.1.0/go.mod h1:6URME8mwIBbpVyZV93Ce5St17xBiQJQY67NDsuohiy4=
34+
github.com/container-storage-interface/spec v1.3.0 h1:wMH4UIoWnK/TXYw8mbcIHgZmB6kHOeIsYsiaTJwa6bc=
35+
github.com/container-storage-interface/spec v1.3.0/go.mod h1:6URME8mwIBbpVyZV93Ce5St17xBiQJQY67NDsuohiy4=
3636
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
3737
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
3838
github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=

pkg/smb/controllerserver.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ func (d *Driver) DeleteVolume(ctx context.Context, req *csi.DeleteVolumeRequest)
4747
return &csi.DeleteVolumeResponse{}, nil
4848
}
4949

50+
// ControllerGetVolume get volume
51+
func (d *Driver) ControllerGetVolume(context.Context, *csi.ControllerGetVolumeRequest) (*csi.ControllerGetVolumeResponse, error) {
52+
return nil, status.Error(codes.Unimplemented, "")
53+
}
54+
5055
func (d *Driver) ControllerPublishVolume(ctx context.Context, req *csi.ControllerPublishVolumeRequest) (*csi.ControllerPublishVolumeResponse, error) {
5156
return nil, status.Error(codes.Unimplemented, "")
5257
}

pkg/smb/controllerserver_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,16 @@ func TestControllerExpandVolume(t *testing.T) {
206206
}
207207
}
208208

209+
func TestControllerGetVolume(t *testing.T) {
210+
d := NewFakeDriver()
211+
req := csi.ControllerGetVolumeRequest{}
212+
resp, err := d.ControllerGetVolume(context.Background(), &req)
213+
assert.Nil(t, resp)
214+
if !reflect.DeepEqual(err, status.Error(codes.Unimplemented, "")) {
215+
t.Errorf("Unexpected error: %v", err)
216+
}
217+
}
218+
209219
func TestCreateSnapshot(t *testing.T) {
210220
d := NewFakeDriver()
211221
req := csi.CreateSnapshotRequest{}

0 commit comments

Comments
 (0)