Skip to content

Commit aca169d

Browse files
committed
fix .status.default when initializing the default vpc (kubeovn#3086)
1 parent b2b1901 commit aca169d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/controller/controller.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -674,14 +674,14 @@ func (c *Controller) Run(ctx context.Context) {
674674
util.LogFatalAndExit(err, "failed to set NB_Global option use_ct_inv_match")
675675
}
676676

677-
if err := c.InitDefaultVpc(); err != nil {
678-
util.LogFatalAndExit(err, "failed to initialize default vpc")
679-
}
680-
681677
if err := c.InitOVN(); err != nil {
682678
util.LogFatalAndExit(err, "failed to initialize ovn resources")
683679
}
684680

681+
if err := c.InitDefaultVpc(); err != nil {
682+
util.LogFatalAndExit(err, "failed to initialize default vpc")
683+
}
684+
685685
// sync ip crd before initIPAM since ip crd will be used to restore vm and statefulset pod in initIPAM
686686
if err := c.initSyncCrdIPs(); err != nil {
687687
util.LogFatalAndExit(err, "failed to sync crd ips")

0 commit comments

Comments
 (0)