From a9e8bc2b781b2537f50662ee64fec8da1b6f0c4c Mon Sep 17 00:00:00 2001 From: Yuma Ogami Date: Thu, 7 Mar 2024 07:09:04 +0000 Subject: [PATCH] fix --- internal/controller/rbdpvcbackup_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/rbdpvcbackup_controller.go b/internal/controller/rbdpvcbackup_controller.go index ab9ff9a9..7ae22c51 100644 --- a/internal/controller/rbdpvcbackup_controller.go +++ b/internal/controller/rbdpvcbackup_controller.go @@ -137,7 +137,7 @@ func (r *RBDPVCBackupReconciler) Reconcile(ctx context.Context, req ctrl.Request } return reconcile.Result{}, err } - for pvc.Status.Phase == "Pending" { + for pvc.Status.Phase != corev1.ClaimBound { logger.Info("waiting for PVC bound.") time.Sleep(1 * time.Second)