Skip to content

Commit 84c120f

Browse files
committed
feat(agent): wire ImpVMSnapshotReconciler into agent manager
1 parent c6b4a7c commit 84c120f

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

cmd/agent/main.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,16 @@ func main() {
7979
os.Exit(1)
8080
}
8181

82+
if err := (&agent.ImpVMSnapshotReconciler{
83+
Client: mgr.GetClient(),
84+
Scheme: mgr.GetScheme(),
85+
NodeName: nodeName,
86+
Driver: driver,
87+
}).SetupWithManager(mgr); err != nil {
88+
log.Error(err, "unable to create controller", "controller", "ImpVMSnapshot")
89+
os.Exit(1)
90+
}
91+
8292
if err := mgr.AddHealthzCheck("healthz", healthz.Ping); err != nil {
8393
log.Error(err, "Unable to set up health check")
8494
os.Exit(1)

0 commit comments

Comments
 (0)