Skip to content

Latest commit

 

History

History
30 lines (27 loc) · 2.52 KB

v5-0-migration.md

File metadata and controls

30 lines (27 loc) · 2.52 KB
title description layout permalink
Migrating from v4.7 to v5.0
Migrating from v4.7 to v5.0
docs
/docs/v5-0-migration

Migrating from v4.7 to v5.0

API Tweaks

  1. Result of managed dependent resources is not Optional anymore. In case you use this result, simply use the result objects directly.
  2. EventSourceInitializer is not a separate interface anymore. It is part of the Reconciler interface with a default implementation. You can simply remove this interface from your reconciler. The EventSourceUtils now contains all the utility methods used for event sources naming that were previously defined in the EventSourceInitializer interface.
  3. Patching status through UpdateControl like the patchStatus method now by default uses Server Side Apply instead of simple patch. To use the former approach, use the feature flag in ConfigurationService !!! IMPORTANT !!! Migration from a non-SSA based controller to SSA based controller can cause problems, due to known issues. See the following integration test where it is demonstrated. Also, the related part of a workaround.
  4. ManagedDependentResourceContext has been renamed to ManagedWorkflowAndDependentResourceContext and is accessed via the accordingly renamed managedWorkflowAndDependentResourceContext method.
  5. ResourceDiscriminator was removed. In most of the cases you can just delete the discriminator, everything should work without it by default. To optimize and handle special cases see the relevant section in Dependent Resource documentation.