Add status markers for sinkbinding in subresourcereconciler
@@ -145,11 +145,13 @@ func (s *SinkBindingSubResourcesReconciler) Reconcile(ctx context.Context, b psb
if s.res == nil {
err := fmt.Errorf("Resolver is nil")
logging.FromContext(ctx).Errorf("%w", err)
+ sb.Status.MarkBindingUnavailable("NoResolver", "No Resolver associated with context for sink")
return err
}
uri, err := s.res.URIFromDestinationV1(ctx, sb.Spec.Sink, sb)
if err != nil {
logging.FromContext(ctx).Errorf("Failed to get URI from Destination: %w", err)
+ sb.Status.MarkBindingUnavailable("NoURI", "URI could not be extracted from destination ")
return err
}
sb.Status.MarkSink(uri)
