Skip to content

Commit

Permalink
do not add subnet not processed by kube-ovn to vpc (#1735)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongzhen-ma authored Jul 25, 2022
1 parent 7ac7b59 commit 3af8516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/vpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ func (c *Controller) getVpcSubnets(vpc *kubeovnv1.Vpc) (subnets []string, defaul
}

for _, subnet := range allSubnets {
if subnet.Spec.Vpc != vpc.Name || !subnet.DeletionTimestamp.IsZero() {
if subnet.Spec.Vpc != vpc.Name || !subnet.DeletionTimestamp.IsZero() || !isOvnSubnet(subnet) {
continue
}

Expand Down

0 comments on commit 3af8516

Please sign in to comment.