Skip to content

Commit

Permalink
Revert removal of finalizer const
Browse files Browse the repository at this point in the history
  • Loading branch information
efiacor committed Nov 14, 2023
1 parent 15edf23 commit b816d10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/pkg/reconcilers/repository/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func init() {
}

const (
finalizer = "infra.nephio.org/finalizer"
errUpdateStatus = "cannot update status"
)

Expand Down Expand Up @@ -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").
Expand Down

0 comments on commit b816d10

Please sign in to comment.