Skip to content

Commit

Permalink
Revert "get default subnet"
Browse files Browse the repository at this point in the history
  • Loading branch information
hongzhen-ma committed Oct 29, 2021
1 parent b8fd817 commit 003723e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/controller/vpc_lb.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,7 @@ func (c *Controller) genVpcLbDeployment(vpc *kubeovnv1.Vpc) (*v1.Deployment, err
return nil, nil
}

defaultSubnetName := vpc.Status.DefaultLogicalSwitch
if defaultSubnetName == "" {
defaultSubnetName = c.config.DefaultLogicalSwitch
}
defaultSubnet, err := c.subnetsLister.Get(defaultSubnetName)
defaultSubnet, err := c.subnetsLister.Get(vpc.Status.DefaultLogicalSwitch)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 003723e

Please sign in to comment.