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 committed Jul 25, 2022
1 parent 66d8be9 commit 1bf5dc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/vpc.go
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 1bf5dc4

Please sign in to comment.