From b6d29740f883e00c7172c213c1d5a617c0d4bf58 Mon Sep 17 00:00:00 2001 From: AChangFeng <1048243380@qq.com> Date: Tue, 6 Aug 2024 19:13:23 +0800 Subject: [PATCH] fix(controller): provision zfs volume if zfs volume already exists Signed-off-by: AChangFeng <1048243380@qq.com> --- pkg/zfs/volume.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/zfs/volume.go b/pkg/zfs/volume.go index eb374dd70..e153c2572 100644 --- a/pkg/zfs/volume.go +++ b/pkg/zfs/volume.go @@ -154,7 +154,8 @@ func ProvisionVolume( zv, err := GetZFSVolume(vol.Name) if err == nil { - // update the spec and status + // update the finalizers spec and status + zv.Finalizers = vol.Finalizers zv.Spec = vol.Spec zv.Status = vol.Status _, err = volbuilder.NewKubeclient().WithNamespace(OpenEBSNamespace).Update(zv)