From d76545b8d26280f8137c441cddec857c146740c7 Mon Sep 17 00:00:00 2001 From: bobz965 Date: Wed, 22 May 2024 10:34:03 +0800 Subject: [PATCH] fix: should update subnet status after change vm subnet (#4061) Signed-off-by: bobz965 --- pkg/controller/pod.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/controller/pod.go b/pkg/controller/pod.go index 7d0f1b0aa79..b98dc5a2414 100644 --- a/pkg/controller/pod.go +++ b/pkg/controller/pod.go @@ -561,6 +561,7 @@ func (c *Controller) changeVMSubnet(vmName, namespace, providerName, subnetName return err } } + c.updateSubnetStatusQueue.Add(ipCR.Spec.Subnet) // handleAddOrUpdatePod will create new lsp and new ip cr } return nil