Skip to content

Commit

Permalink
modify test problem
Browse files Browse the repository at this point in the history
  • Loading branch information
hongzhen-ma committed Feb 10, 2021
1 parent 2dbcb76 commit 60e49f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/controller/subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,9 @@ func (c *Controller) handleUpdateSubnetStatus(key string) error {
func (c *Controller) handleDeleteRoute(subnet *kubeovnv1.Subnet) error {
vpc, err := c.vpcsLister.Get(subnet.Spec.Vpc)
if err != nil {
if k8serrors.IsNotFound(err) {
return nil
}
return err
}
return c.deleteStaticRoute(subnet.Spec.CIDRBlock, vpc.Status.Router, subnet)
Expand Down

0 comments on commit 60e49f5

Please sign in to comment.