Skip to content

Commit

Permalink
fix subnet iprange not correct (#2505)
Browse files Browse the repository at this point in the history
  • Loading branch information
changluyi authored Mar 20, 2023
1 parent 0ebb678 commit 1138c2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/controller/subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,8 @@ func (c Controller) patchSubnetStatus(subnet *kubeovnv1.Subnet, reason string, e

func (c *Controller) handleAddOrUpdateSubnet(key string) error {
var err error
c.subnetStatusKeyMutex.Lock(key)
defer c.subnetStatusKeyMutex.Unlock(key)

cachedSubnet, err := c.subnetsLister.Get(key)
if err != nil {
Expand Down

0 comments on commit 1138c2c

Please sign in to comment.