Skip to content

Commit

Permalink
List all VRGs
Browse files Browse the repository at this point in the history
Signed-off-by: Elena Gershkovich <[email protected]>
  • Loading branch information
ELENAGER authored and ShyamsundarR committed Apr 26, 2023
1 parent c3e297b commit 735963a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/volumereplicationgroup_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ func (r *VolumeReplicationGroupReconciler) configMapFun(configmap client.Object)
req := []reconcile.Request{}

var vrgs ramendrv1alpha1.VolumeReplicationGroupList
if err := r.Client.List(context.TODO(), &vrgs); err != nil {
return []reconcile.Request{}
}

for _, vrg := range vrgs.Items {
log.Info("Adding VolumeReplicationGroup to reconcile request",
Expand Down

0 comments on commit 735963a

Please sign in to comment.