From 6061befbadd5c7af75b3adae0f54edff5426f59c 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