mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 02:43:36 +00:00
cephfs: connect to the Ceph Cluster with go-ceph
Add the ClusterConnection to the volumeOptions type, so that future use of go-ceph can connect to the Ceph cluster. Once a volumeOptions object is not needed anymore, it needs to get destroyed to free associated resources like the ClusterConnection. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
committed by
mergify[bot]
parent
da056a5ef6
commit
0f108edc7b
@ -107,6 +107,7 @@ func (ns *NodeServer) NodeStageVolume(ctx context.Context, req *csi.NodeStageVol
|
||||
}
|
||||
}
|
||||
}
|
||||
defer volOptions.Destroy()
|
||||
|
||||
// Check if the volume is already mounted
|
||||
|
||||
|
Reference in New Issue
Block a user