From 5df0e647bf5a8b24ebbb6c5f76d623a96c1dd519 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Mon, 20 Jan 2025 18:36:10 +0100 Subject: [PATCH] rbd: reduce passing `rbdVolume` types around Signed-off-by: Niels de Vos --- internal/rbd/controllerserver.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/rbd/controllerserver.go b/internal/rbd/controllerserver.go index 62ed50197..bb44c6f09 100644 --- a/internal/rbd/controllerserver.go +++ b/internal/rbd/controllerserver.go @@ -23,6 +23,7 @@ import ( "strconv" csicommon "github.com/ceph/ceph-csi/internal/csi-common" + "github.com/ceph/ceph-csi/internal/rbd/types" "github.com/ceph/ceph-csi/internal/util" "github.com/ceph/ceph-csi/internal/util/k8s" "github.com/ceph/ceph-csi/internal/util/log" @@ -276,7 +277,7 @@ func (rbdVol *rbdVolume) ToCSI(ctx context.Context) (*csi.Volume, error) { func buildCreateVolumeResponse( ctx context.Context, req *csi.CreateVolumeRequest, - rbdVol *rbdVolume, + rbdVol types.Volume, ) (*csi.CreateVolumeResponse, error) { volume, err := rbdVol.ToCSI(ctx) if err != nil {