backup: support backup refactor in main.go
@@ -70,7 +70,7 @@ func main() {
}
kclient := k8sutil.MustNewKubeClient()
- bk, err := backup.New(kclient, clusterName, namespace, cs, listenAddr)
+ bk, err := backup.NewBackupController(kclient, clusterName, namespace, cs, listenAddr)
if err != nil {
logrus.Fatalf("failed to create backup sidecar: %v", err)
}
