Skip to content

Commit 813832d

Browse files
committed
Remove requeue from clone populator
Since now we have specific watches for both clone sources (PVC and VolumeSnapshot), there's no need to force a requeue if source PVC is not ready. Signed-off-by: Alvaro Romero <[email protected]>
1 parent ec7687c commit 813832d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/controller/clone/csi-clone.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package clone
33
import (
44
"context"
55
"fmt"
6-
"time"
76

87
"github.com/go-logr/logr"
98

@@ -63,8 +62,7 @@ func (p *CSIClonePhase) Reconcile(ctx context.Context) (*reconcile.Result, error
6362
}
6463

6564
if !ready {
66-
// TODO - maybe make this event based
67-
return &reconcile.Result{RequeueAfter: 2 * time.Second}, nil
65+
return &reconcile.Result{}, nil
6866
}
6967

7068
pvc, err = p.createClaim(ctx)

0 commit comments

Comments
 (0)