diff --git a/internal/rbd/controllerserver.go b/internal/rbd/controllerserver.go index 8e5e4441b..01338d7d2 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 {