Skip to content

Commit

Permalink
fix inuse.go
Browse files Browse the repository at this point in the history
Signed-off-by: dmitry.lopatin <[email protected]>
  • Loading branch information
LopatinDmitr committed Oct 21, 2024
1 parent cd97e5f commit 523f4a4
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,15 @@ func (r *Reconciler) SetupController(_ context.Context, mgr manager.Manager, ctr
return fmt.Errorf("error setting watch on VDSnapshots: %w", err)
}

//viFromVDWatcher := watcher.NewVirtualImageWatcher()
//if err := viFromVDWatcher.Watch(mgr, ctr); err != nil {
// return fmt.Errorf("error setting watch on VIs: %w", err)
//}
//
//cviFromVDWatcher := watcher.NewClusterVirtualImageWatcher()
//if err := cviFromVDWatcher.Watch(mgr, ctr); err != nil {
// return fmt.Errorf("error setting watch on CVIs: %w", err)
//}
viFromVDWatcher := watcher.NewVirtualImageWatcher()
if err := viFromVDWatcher.Watch(mgr, ctr); err != nil {
return fmt.Errorf("error setting watch on VIs: %w", err)
}

cviFromVDWatcher := watcher.NewClusterVirtualImageWatcher()
if err := cviFromVDWatcher.Watch(mgr, ctr); err != nil {
return fmt.Errorf("error setting watch on CVIs: %w", err)
}

return nil
}
Expand Down

0 comments on commit 523f4a4

Please sign in to comment.