moved core STS reconciliation to run after migration
@@ -94,9 +94,7 @@ func (r *Reconciler) ReconcilePhaseCreatingForMainClusters() error {
if err := r.UpgradeSplitDB(); err != nil {
return err
}
- if err := r.ReconcileObject(r.CoreApp, r.SetDesiredCoreApp); err != nil {
- return err
- }
+
// create the mongo db only if mongo db url is not given.
if r.NooBaa.Spec.MongoDbURL == "" {
if err := r.UpgradeSplitDB(); err != nil {
@@ -126,6 +124,11 @@ func (r *Reconciler) ReconcilePhaseCreatingForMainClusters() error {
return err
}
}
+
+ if err := r.ReconcileObject(r.CoreApp, r.SetDesiredCoreApp); err != nil {
+ return err
+ }
+
if err := r.ReconcileObjectOptional(r.RouteMgmt, nil); err != nil {
return err
}
