From d7f2e0d3299702a07caa47e29cdf8827a32f1a60 Mon Sep 17 00:00:00 2001 From: Masato Naka Date: Sun, 21 Aug 2022 21:33:56 +0900 Subject: [PATCH] fix Unit test 'Status.Phase should be NotReady' --- controllers/mysqluser_controller.go | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/mysqluser_controller.go b/controllers/mysqluser_controller.go index 86e95ec3..33cb4c15 100644 --- a/controllers/mysqluser_controller.go +++ b/controllers/mysqluser_controller.go @@ -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")