Skip to content

Commit

Permalink
fix .status.default when initializing the default vpc (#3086)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Jul 28, 2023
1 parent fabbd4b commit a91f0a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,14 +375,14 @@ func (c *Controller) Run(stopCh <-chan struct{}) {
util.LogFatalAndExit(err, "failed to set NB_Global option use_ct_inv_match")
}

if err := c.InitDefaultVpc(); err != nil {
util.LogFatalAndExit(err, "failed to initialize default vpc")
}

if err := c.InitOVN(); err != nil {
util.LogFatalAndExit(err, "failed to initialize ovn resources")
}

if err := c.InitDefaultVpc(); err != nil {
util.LogFatalAndExit(err, "failed to initialize default vpc")
}

// sync ip crd before initIPAM since ip crd will be used to restore vm and statefulset pod in initIPAM
if err := c.initSyncCrdIPs(); err != nil {
util.LogFatalAndExit(err, "failed to sync crd ips")
Expand Down

0 comments on commit a91f0a0

Please sign in to comment.