chore: move to csi-v1.3.0

This commit is contained in:
andyzhangx 2020-07-10 02:21:00 +00:00
parent e19e97e253
commit bb85bf781c
6 changed files with 1219 additions and 806 deletions

4
go.mod
View File

@ -8,7 +8,7 @@ require (
github.com/Azure/go-autorest/autorest/adal v0.8.3
github.com/Azure/go-autorest/autorest/to v0.3.0
github.com/Azure/go-autorest/autorest/validation v0.1.0 // indirect
github.com/container-storage-interface/spec v1.2.0
github.com/container-storage-interface/spec v1.3.0
github.com/golang/protobuf v1.3.5
github.com/kubernetes-csi/csi-proxy/client v0.0.0-20200330215040-9eff16441b2a
github.com/pborman/uuid v1.2.0
@ -82,7 +82,7 @@ replace (
github.com/clusterhq/flocker-go => github.com/clusterhq/flocker-go v0.0.0-20160920122132-2b8b7259d313
github.com/cockroachdb/datadriven => github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa
github.com/codegangsta/negroni => github.com/codegangsta/negroni v1.0.0
github.com/container-storage-interface/spec => github.com/container-storage-interface/spec v1.1.0
github.com/container-storage-interface/spec => github.com/container-storage-interface/spec v1.3.0
github.com/containerd/console => github.com/containerd/console v0.0.0-20170925154832-84eeaae905fa
github.com/containerd/containerd => github.com/containerd/containerd v1.0.2
github.com/containerd/typeurl => github.com/containerd/typeurl v0.0.0-20190228175220-2a93cfde8c20

4
go.sum
View File

@ -31,8 +31,8 @@ github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRF
github.com/beorn7/perks v1.0.0 h1:HWo1m869IqiPhD389kmkxeTalrjNbbJTC8LXupb+sl0=
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/container-storage-interface/spec v1.1.0 h1:qPsTqtR1VUPvMPeK0UnCZMtXaKGyyLPG8gj/wG6VqMs=
github.com/container-storage-interface/spec v1.1.0/go.mod h1:6URME8mwIBbpVyZV93Ce5St17xBiQJQY67NDsuohiy4=
github.com/container-storage-interface/spec v1.3.0 h1:wMH4UIoWnK/TXYw8mbcIHgZmB6kHOeIsYsiaTJwa6bc=
github.com/container-storage-interface/spec v1.3.0/go.mod h1:6URME8mwIBbpVyZV93Ce5St17xBiQJQY67NDsuohiy4=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=

View File

@ -47,6 +47,11 @@ func (d *Driver) DeleteVolume(ctx context.Context, req *csi.DeleteVolumeRequest)
return &csi.DeleteVolumeResponse{}, nil
}
// ControllerGetVolume get volume
func (d *Driver) ControllerGetVolume(context.Context, *csi.ControllerGetVolumeRequest) (*csi.ControllerGetVolumeResponse, error) {
return nil, status.Error(codes.Unimplemented, "")
}
func (d *Driver) ControllerPublishVolume(ctx context.Context, req *csi.ControllerPublishVolumeRequest) (*csi.ControllerPublishVolumeResponse, error) {
return nil, status.Error(codes.Unimplemented, "")
}

View File

@ -206,6 +206,16 @@ func TestControllerExpandVolume(t *testing.T) {
}
}
func TestControllerGetVolume(t *testing.T) {
d := NewFakeDriver()
req := csi.ControllerGetVolumeRequest{}
resp, err := d.ControllerGetVolume(context.Background(), &req)
assert.Nil(t, resp)
if !reflect.DeepEqual(err, status.Error(codes.Unimplemented, "")) {
t.Errorf("Unexpected error: %v", err)
}
}
func TestCreateSnapshot(t *testing.T) {
d := NewFakeDriver()
req := csi.CreateSnapshotRequest{}

File diff suppressed because it is too large Load Diff

2
vendor/modules.txt vendored
View File

@ -23,7 +23,7 @@ github.com/Microsoft/go-winio
github.com/Microsoft/go-winio/pkg/guid
# github.com/beorn7/perks v1.0.0 => github.com/beorn7/perks v1.0.0
github.com/beorn7/perks/quantile
# github.com/container-storage-interface/spec v1.2.0 => github.com/container-storage-interface/spec v1.1.0
# github.com/container-storage-interface/spec v1.3.0 => github.com/container-storage-interface/spec v1.3.0
github.com/container-storage-interface/spec/lib/go/csi
# github.com/davecgh/go-spew v1.1.1 => github.com/davecgh/go-spew v1.1.1
github.com/davecgh/go-spew/spew