From 2e0e87fdec2af57caac22cf15aa6c2d2a1fbbb2d Mon Sep 17 00:00:00 2001 From: Clinton Knight Date: Mon, 25 Nov 2024 10:36:02 -0500 Subject: [PATCH] Updated to CSI 1.9 --- frontend/csi/controller_server.go | 7 +++++++ go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/frontend/csi/controller_server.go b/frontend/csi/controller_server.go index 81e82ab44..ee2c39ca8 100644 --- a/frontend/csi/controller_server.go +++ b/frontend/csi/controller_server.go @@ -1018,6 +1018,13 @@ func (p *Plugin) ControllerGetVolume( return nil, status.Error(codes.Unimplemented, "") } +func (p *Plugin) ControllerModifyVolume( + _ context.Context, _ *csi.ControllerModifyVolumeRequest, +) (*csi.ControllerModifyVolumeResponse, error) { + // Trident doesn't support ControllerModifyVolume + return nil, status.Error(codes.Unimplemented, "") +} + func (p *Plugin) getCSIVolumeFromTridentVolume( ctx context.Context, volume *storage.VolumeExternal, ) (*csi.Volume, error) { diff --git a/go.mod b/go.mod index 7d6c5f848..54e92e886 100755 --- a/go.mod +++ b/go.mod @@ -15,7 +15,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/fsx v1.49.2 github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.34.2 github.com/cenkalti/backoff/v4 v4.3.0 - github.com/container-storage-interface/spec v1.8.0 + github.com/container-storage-interface/spec v1.9.0 github.com/docker/go-plugins-helpers v0.0.0-20240701071450-45e2431495c8 github.com/dustin/go-humanize v1.0.2-0.20231009183035-961771c7ab99 github.com/elastic/go-sysinfo v1.14.2 diff --git a/go.sum b/go.sum index a23966357..e5c565669 100755 --- a/go.sum +++ b/go.sum @@ -105,8 +105,8 @@ github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XL github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/container-storage-interface/spec v1.8.0 h1:D0vhF3PLIZwlwZEf2eNbpujGCNwspwTYf2idJRJx4xI= -github.com/container-storage-interface/spec v1.8.0/go.mod h1:ROLik+GhPslwwWRNFF1KasPzroNARibH2rfz1rkg4H0= +github.com/container-storage-interface/spec v1.9.0 h1:zKtX4STsq31Knz3gciCYCi1SXtO2HJDecIjDVboYavY= +github.com/container-storage-interface/spec v1.9.0/go.mod h1:ZfDu+3ZRyeVqxZM0Ds19MVLkN2d1XJ5MAfi1L3VjlT0= github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e h1:Wf6HqHfScWJN9/ZjdUKyjop4mf3Qdd+1TvvltAvM3m8= github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= github.com/coreos/go-systemd/v22 v22.5.0 h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8iXXhfZs=