rbd: fix problem with deletion of a namespaced image

fix problem with deletion of a namespaced image

Signed-off-by: Marton Natko <mnatko@transip.nl>
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Marton Natko 2020-08-18 12:43:18 +02:00 committed by mergify[bot]
parent 2fbca0d1e2
commit 91c49c14b3

View File

@ -134,6 +134,7 @@ func (rv *rbdVolume) generateTempClone() *rbdVolume {
tempClone.ClusterID = rv.ClusterID tempClone.ClusterID = rv.ClusterID
tempClone.Monitors = rv.Monitors tempClone.Monitors = rv.Monitors
tempClone.Pool = rv.Pool tempClone.Pool = rv.Pool
tempClone.RadosNamespace = rv.RadosNamespace
// The temp cloned image name will be always (rbd image name + "-temp") // The temp cloned image name will be always (rbd image name + "-temp")
// this name will be always unique, as cephcsi never creates an image with // this name will be always unique, as cephcsi never creates an image with
// this format for new rbd images // this format for new rbd images