You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/en/blog/releases/v5-release.md
+51
Original file line number
Diff line number
Diff line change
@@ -315,6 +315,57 @@ purpose, it will check if the CRD of a target resource type of a dependent resou
315
315
See usage in integration
316
316
test [here](https://github.com/operator-framework/java-operator-sdk/blob/refs/heads/next/operator-framework/src/test/java/io/javaoperatorsdk/operator/workflow/crdpresentactivation).
317
317
318
+
## Fabric8 client updated to 7.0
319
+
320
+
The Fabric8 client has been updated to version 7.0.0. This is a new major version which implies that some API might have
321
+
changed. Please take a look at the [Fabric8 client 7.0.0 migration guide](https://github.com/fabric8io/kubernetes-client/blob/main/doc/MIGRATION-v7.md).
322
+
323
+
### CRD generator changes
324
+
325
+
Starting with v5.0 (in accordance with changes made to the Fabric8 client in version 7.0.0), the CRD generator will use the maven plugin instead of the annotation processor as was previously the case.
326
+
In many instances, you can simply configure the plugin by adding the following stanza to your project's POM build configuration:
*NOTE*: If you use the SDK's JUnit extension for your tests, you might also need to configure the CRD generator plugin to access your test `CustomResource` implementations as follows:
Please refer to the [CRD generator documentation](https://github.com/fabric8io/kubernetes-client/blob/main/doc/CRD-generator.md) for more details.
367
+
368
+
318
369
## Experimental
319
370
320
371
### Check if the following reconciliation is imminent
Copy file name to clipboardExpand all lines: docs/content/en/docs/migration/v5-0-migration.md
+1-110
Original file line number
Diff line number
Diff line change
@@ -3,113 +3,4 @@ title: Migrating from v4.7 to v5.0
3
3
description: Migrating from v4.7 to v5.0
4
4
---
5
5
6
-
# Migrating from v4.7 to v5.0
7
-
8
-
## Fabric8 client updated to 7.0
9
-
10
-
The Fabric8 client has been updated to version 7.0.0. This is a new major version which implies that some API might have
11
-
changed. Please take a look at the [Fabric8 client 7.0.0 migration guide](https://github.com/fabric8io/kubernetes-client/blob/main/doc/MIGRATION-v7.md).
12
-
13
-
### CRD generator changes
14
-
15
-
Starting with v5.0 (in accordance with changes made to the Fabric8 client in version 7.0.0), the CRD generator will use the maven plugin instead of the annotation processor as was previously the case.
16
-
In many instances, you can simply configure the plugin by adding the following stanza to your project's POM build configuration:
*NOTE*: If you use the SDK's JUnit extension for your tests, you might also need to configure the CRD generator plugin to access your test `CustomResource` implementations as follows:
Please refer to the [CRD generator documentation](https://github.com/fabric8io/kubernetes-client/blob/main/doc/CRD-generator.md) for more details.
57
-
58
-
59
-
## API tweaks
60
-
61
-
1.[Result of managed dependent resources](https://github.com/operator-framework/java-operator-sdk/blob/main/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/dependent/managed/ManagedDependentResourceContext.java#L55-L57)
62
-
is not `Optional` anymore. In case you use this result, simply use the result
63
-
objects directly.
64
-
2.`EventSourceInitializer` is not a separate interface anymore. It is part of the `Reconciler` interface with a
65
-
default implementation. You can simply remove this interface from your reconciler. The
where it is demonstrated. Also, the related part of
94
-
a [workaround](https://github.com/operator-framework/java-operator-sdk/blob/main/operator-framework/src/test/java/io/javaoperatorsdk/operator/StatusPatchSSAMigrationIT.java#L110-L116).
95
-
96
-
6.`ManagedDependentResourceContext` has been renamed to `ManagedWorkflowAndDependentResourceContext` and is accessed
97
-
via the accordingly renamed `managedWorkflowAndDependentResourceContext` method.
98
-
7.`ResourceDiscriminator` was removed. In most of the cases you can just delete the discriminator, everything should
99
-
work without it by default. To optimize and handle special cases see the relevant section
100
-
in [Dependent Resource documentation](/docs/dependent-resources#multiple-dependent-resources-of-same-type).
101
-
8.`ConfigurationService.getTerminationTimeoutSeconds` and associated overriding mechanism have been removed,
102
-
use `Operator.stop(Duration)` instead.
103
-
9.`Operator.installShutdownHook()` has been removed, use `Operator.installShutdownHook(Duration)` instead
104
-
10. Automated observed generation handling feature was removed (`ObservedGenerationAware` interface
105
-
and `ObservedGenerationAwareStatus` class were deleted). Manually handling observed generation is fairly easy to do
106
-
in your reconciler, however, it cannot be done automatically when using SSA. We therefore removed the feature since
107
-
it would have been confusing to have a different behavior for SSA and non-SSA cases. For an example of how to do
108
-
observed generation handling manually in your reconciler, see
0 commit comments