Skip to content

Commit

Permalink
enqueue subnets after vpc update (#1722)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Jul 25, 2022
1 parent e895c5f commit a91056a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkg/controller/vpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,17 @@ func (c *Controller) handleAddOrUpdateVpc(key string) error {
return err
}

subnets, err := c.subnetsLister.List(labels.Everything())
if err != nil {
return err
}

for _, subnet := range subnets {
if subnet.Spec.Vpc == key {
c.addOrUpdateSubnetQueue.Add(subnet.Name)
}
}

return nil
}

Expand Down

0 comments on commit a91056a

Please sign in to comment.