Commit 2438ea01 authored by hzma's avatar hzma
Browse files

do not add subnet not processed by kube-ovn to vpc

parent 96683cb1
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment