Migrating from v2 to v3 #
Version 3 introduces some breaking changes to APIs, however the migration to these changes should be trivial.
Reconcilercan throw checked exception (not just runtime exception), and that also can be handled by
cleanupmethod is extracted from the
Reconcilerinterface to a separate
Cleanerinterface. Finalizers only makes sense that the
Cleanupis implemented, from now finalizer is only added if the
Reconcilerimplements this interface (or has managed dependent resources implementing
Deleterinterface, see dependent resource docs).
Reconcilernow takes the Primary resource as parametrized type:
ErrorStatusHandlerresult changed, it functionally has been extended to now prevent Exception to be retried and handles checked exceptions as mentioned above.
Event Sources #
- Event Sources are now registered with a name. But utility method is available to make it easy to migrate to a default name.
constructor changed to reflect additional functionality in a non backwards compatible way. All the configuration
options from the constructor where moved to
InformerConfiguration. See sample usage in
PrimaryResourcesRetrieverwas renamed to
AssociatedSecondaryResourceIdentifierwas renamed to
getAssociatedResourceis now renamed to get
getSecondaryResourcein multiple places