Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cupnes committed Mar 7, 2024
1 parent 7ef7f43 commit a9e8bc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/rbdpvcbackup_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit a9e8bc2

Please sign in to comment.