Skip to content

Commit

Permalink
Fix mysqlbackup deletion failure when cluster is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
bluven authored and AMecea committed Jun 20, 2019
1 parent 103e6a9 commit 04c440a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/controller/mysqlbackup/mysqlbackup_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,12 @@ func (r *ReconcileMysqlBackup) Reconcile(request reconcile.Request) (reconcile.R
if sErr := syncer.Sync(context.TODO(), s, r.recorder); sErr != nil {
return reconcile.Result{}, sErr
}
return reconcile.Result{}, fmt.Errorf("cluster not found: %s", err)

if uErr := r.updateBackup(savedBackup, backup); uErr != nil {
return reconcile.Result{}, uErr
}

return reconcile.Result{}, err
}

// set defaults for the backup base on the related cluster
Expand Down

0 comments on commit 04c440a

Please sign in to comment.