diff --git a/controllers/pkg/reconcilers/repository/reconciler.go b/controllers/pkg/reconcilers/repository/reconciler.go index 006ee0d7..5051388e 100644 --- a/controllers/pkg/reconcilers/repository/reconciler.go +++ b/controllers/pkg/reconcilers/repository/reconciler.go @@ -41,6 +41,7 @@ func init() { } const ( + finalizer = "infra.nephio.org/finalizer" errUpdateStatus = "cannot update status" ) @@ -70,7 +71,7 @@ func (r *reconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, c i } r.APIPatchingApplicator = resource.NewAPIPatchingApplicator(mgr.GetClient()) - r.finalizer = resource.NewAPIFinalizer(mgr.GetClient(), "infra.nephio.org/finalizer") + r.finalizer = resource.NewAPIFinalizer(mgr.GetClient(), finalizer) return nil, ctrl.NewControllerManagedBy(mgr). Named("RepositoryController").