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>
(cherry picked from commit 91c49c14b3)
This commit is contained in:
Marton Natko 2020-08-18 12:43:18 +02:00 committed by mergify[bot]
parent d999d9db0c
commit 8dc3f51350

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