title | description | layout | permalink |
---|---|---|---|
Migrating from v4.7 to v5.0 |
Migrating from v4.7 to v5.0 |
docs |
/docs/v5-0-migration |
-
Result of managed dependent resources is not
Optional
anymore. In case you use this result, simply use the result objects directly. -
EventSourceInitializer
is not a separate interface anymore. It is part of theReconciler
interface with a default implementation. You can simply remove this interface from your reconciler. TheEventSourceUtils
now contains all the utility methods used for event sources naming that were previously defined in theEventSourceInitializer
interface. -
Updates through
UpdateControl
now use Server Side Apply (SSA) by default to add the finalizer and for all the patch operations inUpdateControl
. The update operations were removed. If you do not wish to use SSA, you can deactivate the feature usingConfigurationService.useSSAToPatchPrimaryResource
and relatedConfigurationServiceOverrider.withUseSSAToPatchPrimaryResource
.!!! IMPORTANT !!!
See known issues with migration from non-SSA to SSA based status updates here: integration test where it is demonstrated. Also, the related part of a workaround.
Related automatic observed generation handling changes: Automated Observed Generation (see features in docs), is automatically handled for non-SSA, even if the status sub-resource is not instructed to be updated. This is not true for SSA, observed generation is updated only when patch status is instructed by
UpdateControl
. -
ManagedDependentResourceContext
has been renamed toManagedWorkflowAndDependentResourceContext
and is accessed via the accordingly renamedmanagedWorkflowAndDependentResourceContext
method. -
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. -
ConfigurationService.getTerminationTimeoutSeconds
and associated overriding mechanism have been removed, useOperator.stop(Duration)
instead. -
Operator.installShutdownHook()
has been removed, useOperator.installShutdownHook(Duration)
instead