Migrating from v2 to v3
Migrating from v2 to v3
Migrating from v2 to v3
Version 3 introduces some breaking changes to APIs, however the migration to these changes should be trivial.
Reconciler
Reconciler
can throw checked exception (not just runtime exception), and that also can be handled byErrorStatusHandler
.cleanup
method is extracted from theReconciler
interface to a separateCleaner
interface. Finalizers only makes sense that theCleanup
is implemented, from now finalizer is only added if theReconciler
implements this interface (or has managed dependent resources implementingDeleter
interface, see dependent resource docs).Context
object ofReconciler
now takes the Primary resource as parametrized type:Context<MyCustomResource>
.ErrorStatusHandler
result 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.
- InformerEventSource
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 inWebPageReconciler
. PrimaryResourcesRetriever
was renamed toSecondaryToPrimaryMapper
AssociatedSecondaryResourceIdentifier
was renamed toPrimaryToSecondaryMapper
getAssociatedResource
is now renamed to getgetSecondaryResource
in multiple places
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.