From 0400c4545579d224db85d8448c4c179c391e54e9 Mon Sep 17 00:00:00 2001 From: bobz965 Date: Sat, 29 Jul 2023 23:49:05 +0800 Subject: [PATCH] fix sg --- pkg/controller/pod.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/controller/pod.go b/pkg/controller/pod.go index 0fd06687eb6..f2866ce41f6 100644 --- a/pkg/controller/pod.go +++ b/pkg/controller/pod.go @@ -361,7 +361,8 @@ func (c *Controller) enqueueUpdatePod(oldObj, newObj interface{}) { oldVips := oldPod.Annotations[fmt.Sprintf(util.PortVipAnnotationTemplate, podNet.ProviderName)] newVips := newPod.Annotations[fmt.Sprintf(util.PortVipAnnotationTemplate, podNet.ProviderName)] if oldSecurity != newSecurity || oldSg != newSg || oldVips != newVips { - c.updatePodSecurityQueue.Add(key) + klog.Infof("enqueue add pod %s", key) + c.addPodQueue.Add(key) break } }