Add lifecycle hooks by scothis · Pull Request #327 · servicebinding/runtime

@scothis requested a review from a team

August 25, 2023 19:38

@scothis scothis marked this pull request as ready for review

September 9, 2023 19:59

sadlerap

@scothis

The hooks allow defining a custom Resolver or Projector as well as
interacting with the ServiceBinding and workload resources before before
and after projection.

Defining no hooks is equivalent to the current RI behavior.

The controller operates on a single ServiceBinding and zero-to-many
workloads in a single request, while the webhook operates on a single
workload with zero-to-many ServiceBindings. Because of this mismatch, we
split out interactions with the ServiceBinding and workload resources
into independent hooks.

Signed-off-by: Scott Andrews <andrewssc@vmware.com>