Skip to content

Commit

Permalink
vrg: requeue if pvc is still in use
Browse files Browse the repository at this point in the history
If the PVC is in use by a pod, we prevent the transition of the VRG to
secondary. In such cases, we should requeue so that the PVC in-use state
is evaluated again.

Signed-off-by: Raghavendra Talur <[email protected]>
  • Loading branch information
raghavendra-talur authored and ShyamsundarR committed Nov 16, 2022
1 parent bf85da1 commit 7122139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/vrg_volrep.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (v *VRGInstance) reconcileVRAsSecondary(pvc *corev1.PersistentVolumeClaim,
)

if !v.isPVCReadyForSecondary(pvc, log) {
return !requeue, false, skip
return requeue, false, skip
}

pvcNamespacedName := types.NamespacedName{Name: pvc.Name, Namespace: pvc.Namespace}
Expand Down

0 comments on commit 7122139

Please sign in to comment.