pkg/resolver
Lukas Berk 34829c0aee
Alter URIFromObjectReference to return apierrs (#1688)
* Return an apimachinery error if psbinding subject WithContext fails

In the event a subject's `WithContext()` call fails, then
ReconcileSubject fails without catching the proper
error (sinkbinding's WithContext returns its own custom errors).  This
can manifest itself in instances where the sinkbinding subject has
been deleted before the sinkbinding itself, and leaves the reconcile
deletion loop stuck before the finalizer can be removed.  Leaving the
sinkbinding itself stuck, despite the subject already being deleted.

* Alter URIFromObjectReference to return apierrs

This allows for reconcile deletion to properly remove finalizer and
delete sinkbinding

* Update Tests

* Drop unneeded Sprintf
2020-09-09 10:25:50 -07:00
..
OWNERS Resolver package for resolving addressables to URI (#578) 2019-08-23 15:15:14 -07:00
addressable_resolver.go Alter URIFromObjectReference to return apierrs (#1688) 2020-09-09 10:25:50 -07:00
addressable_resolver_test.go Alter URIFromObjectReference to return apierrs (#1688) 2020-09-09 10:25:50 -07:00
doc.go Resolver package for resolving addressables to URI (#578) 2019-08-23 15:15:14 -07:00