Skip to content

Commit

Permalink
fix(controller): provision zfs volume if zfs volume already exists
Browse files Browse the repository at this point in the history
Signed-off-by: Qin Hu <1048243380@qq.com>
  • Loading branch information
AChangFeng committed Aug 6, 2024
1 parent 3854ec2 commit 6781257
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/zfs/volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6781257

Please sign in to comment.