mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-01-30 16:49:29 +00:00
rbd: reduce passing rbdVolume
types around
Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
parent
923e1e3af5
commit
27624a71ee
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user