From 25a586237742a8d11823b6469c33004050fe27af Mon Sep 17 00:00:00 2001 From: Cheng Pan Date: Tue, 2 Apr 2019 20:37:38 -0700 Subject: [PATCH] Upgrade CSI spec to 1.1.0 --- go.mod | 2 +- go.sum | 2 ++ pkg/driver/controller.go | 4 ++++ pkg/driver/node.go | 4 ++++ 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 3fd6f3ac6a..9d2dd4b187 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/aws/aws-sdk-go v1.16.3 github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973 // indirect github.com/boltdb/bolt v1.3.1 // indirect - github.com/container-storage-interface/spec v1.0.0 + github.com/container-storage-interface/spec v1.1.0 github.com/coreos/bbolt v1.3.0 // indirect github.com/coreos/etcd v3.3.10+incompatible // indirect github.com/coreos/go-semver v0.2.0 // indirect diff --git a/go.sum b/go.sum index 86dfdb160b..fa47aa0873 100644 --- a/go.sum +++ b/go.sum @@ -20,6 +20,8 @@ github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx2 github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/container-storage-interface/spec v1.0.0 h1:3DyXuJgf9MU6kyULESegQUmozsSxhpyrrv9u5bfwA3E= github.com/container-storage-interface/spec v1.0.0/go.mod h1:6URME8mwIBbpVyZV93Ce5St17xBiQJQY67NDsuohiy4= +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/coreos/bbolt v1.3.0/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= github.com/coreos/etcd v3.3.10+incompatible h1:jFneRYjIvLMLhDLCzuTuU4rSJUjRplcJQ7pD7MnhC04= github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= diff --git a/pkg/driver/controller.go b/pkg/driver/controller.go index 163f3afc55..13aca15416 100644 --- a/pkg/driver/controller.go +++ b/pkg/driver/controller.go @@ -379,6 +379,10 @@ func (d *controllerService) ListSnapshots(ctx context.Context, req *csi.ListSnap return nil, status.Error(codes.Unimplemented, "") } +func (d *Driver) ControllerExpandVolume(ctx context.Context, req *csi.ControllerExpandVolumeRequest) (*csi.ControllerExpandVolumeResponse, error) { + return nil, status.Error(codes.Unimplemented, "") +} + // pickAvailabilityZone selects 1 zone given topology requirement. // if not found, empty string is returned. func pickAvailabilityZone(requirement *csi.TopologyRequirement) string { diff --git a/pkg/driver/node.go b/pkg/driver/node.go index ec6afd7a67..f8df86c672 100644 --- a/pkg/driver/node.go +++ b/pkg/driver/node.go @@ -320,6 +320,10 @@ func (d *nodeService) NodeGetInfo(ctx context.Context, req *csi.NodeGetInfoReque }, nil } +func (d *nodeService) NodeExpandVolume(ctx context.Context, req *csi.NodeExpandVolumeRequest) (*csi.NodeExpandVolumeResponse, error) { + return nil, status.Error(codes.Unimplemented, "") +} + func (d *nodeService) nodePublishVolumeForBlock(req *csi.NodePublishVolumeRequest, mountOptions []string) error { target := req.GetTargetPath() volumeID := req.GetVolumeId()