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:
Niels de Vos
2020-08-05 12:10:04 +02:00
committed by mergify[bot]
parent da056a5ef6
commit 0f108edc7b
3 changed files with 45 additions and 1 deletions

View File

@ -107,6 +107,7 @@ func (ns *NodeServer) NodeStageVolume(ctx context.Context, req *csi.NodeStageVol
}
}
}
defer volOptions.Destroy()
// Check if the volume is already mounted