Skip to content

Commit bd65e03

Browse files
authored
Merge pull request #226 from davidz627/feature/updateSpec
Update CSI Spec to v1.10 and add unimplemented ExpandVolume stubs
2 parents bc97e15 + 3e65b20 commit bd65e03

File tree

5 files changed

+718
-274
lines changed

5 files changed

+718
-274
lines changed

Gopkg.lock

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
[[constraint]]
3232
name = "github.com/container-storage-interface/spec"
33-
version = "1.0.0"
33+
version = "1.1.0"
3434

3535
# Transitive dependency of CSI Spec
3636
[[override]]

pkg/gce-pd-csi-driver/controller.go

+4
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,10 @@ func (gceCS *GCEControllerServer) ListSnapshots(ctx context.Context, req *csi.Li
604604
return gceCS.getSnapshots(ctx, req)
605605
}
606606

607+
func (gceCS *GCEControllerServer) ControllerExpandVolume(ctx context.Context, req *csi.ControllerExpandVolumeRequest) (*csi.ControllerExpandVolumeResponse, error) {
608+
return nil, status.Error(codes.Unimplemented, "ControllerExpandVolume is not yet implemented")
609+
}
610+
607611
func (gceCS *GCEControllerServer) getSnapshots(ctx context.Context, req *csi.ListSnapshotsRequest) (*csi.ListSnapshotsResponse, error) {
608612
snapshots := []*compute.Snapshot{}
609613
var nextToken string

pkg/gce-pd-csi-driver/node.go

+4
Original file line numberDiff line numberDiff line change
@@ -298,3 +298,7 @@ func (ns *GCENodeServer) NodeGetInfo(ctx context.Context, req *csi.NodeGetInfoRe
298298
func (ns *GCENodeServer) NodeGetVolumeStats(ctx context.Context, req *csi.NodeGetVolumeStatsRequest) (*csi.NodeGetVolumeStatsResponse, error) {
299299
return nil, status.Error(codes.Unimplemented, fmt.Sprintf("NodeGetVolumeStats is not yet implemented"))
300300
}
301+
302+
func (ns *GCENodeServer) NodeExpandVolume(ctx context.Context, req *csi.NodeExpandVolumeRequest) (*csi.NodeExpandVolumeResponse, error) {
303+
return nil, status.Error(codes.Unimplemented, fmt.Sprintf("NodeExpandVolume is not yet implemented"))
304+
}

0 commit comments

Comments
 (0)