Skip to content

Commit

Permalink
fix sg
Browse files Browse the repository at this point in the history
  • Loading branch information
bobz965 committed Jul 29, 2023
1 parent aca169d commit 0400c45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controller/pod.go
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 0400c45

Please sign in to comment.