Skip to content

Commit

Permalink
fix Unit test 'Status.Phase should be NotReady'
Browse files Browse the repository at this point in the history
  • Loading branch information
nakamasato committed Aug 21, 2022
1 parent da2d287 commit d7f2e0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/mysqluser_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ func (r *MySQLUserReconciler) Reconcile(ctx context.Context, req ctrl.Request) (
log.Error(err, "[FetchMySQL] Failed")
mysqlUser.Status.Phase = mysqlUserPhaseNotReady
mysqlUser.Status.Reason = mysqlUserReasonMySQLFetchFailed
r.Status().Update(ctx, mysqlUser)
return ctrl.Result{}, client.IgnoreNotFound(err)
}
log.Info("[FetchMySQL] Found")
Expand Down

0 comments on commit d7f2e0d

Please sign in to comment.