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: caffeine-bounded-cache-support/src/test/java/io/javaoperatorsdk/operator/processing/event/source/cache/sample/AbstractTestReconciler.java
now contains all the utility methods used for event sources naming that were previously defined in
19
19
the `EventSourceInitializer` interface.
20
-
3. Updates through `UpdateControl` now use [Server Side Apply (SSA)](https://kubernetes.io/docs/reference/using-api/server-side-apply/) by default to add the finalizer and for all
21
-
the patch operations in `UpdateControl`. The update operations were removed. If you do not wish to use SSA, you can deactivate the feature using `ConfigurationService.useSSAToPatchPrimaryResource` and related `ConfigurationServiceOverrider.withUseSSAToPatchPrimaryResource`.
20
+
3. Event sources are now explicitly named (via the `name` method of the `EventSource` interface). Built-in event sources
21
+
implementation have been updated to allow you to specify a name when instantiating them. If you don't provide a name
22
+
for your `EventSource` implementation (for example, by using its default, no-arg constructor), one will be
23
+
automatically generated. This simplifies the API to define event source to
where it is demonstrated. Also, the related part of
28
42
a [workaround](https://github.com/operator-framework/java-operator-sdk/blob/main/operator-framework/src/test/java/io/javaoperatorsdk/operator/StatusPatchSSAMigrationIT.java#L110-L116).
29
43
30
-
Related automatic observed generation handling changes:
44
+
Related automatic observed generation handling changes:
31
45
Automated Observed Generation (see features in docs), is automatically handled for non-SSA, even if
32
-
the status sub-resource is not instructed to be updated. This is not true for SSA, observed generation is updated
46
+
the status sub-resource is not instructed to be updated. This is not true for SSA, observed generation is updated
33
47
only when patch status is instructed by `UpdateControl`.
34
48
35
-
4.`ManagedDependentResourceContext` has been renamed to `ManagedWorkflowAndDependentResourceContext` and is accessed
49
+
5.`ManagedDependentResourceContext` has been renamed to `ManagedWorkflowAndDependentResourceContext` and is accessed
36
50
via the accordingly renamed `managedWorkflowAndDependentResourceContext` method.
37
-
5.`ResourceDiscriminator` was removed. In most of the cases you can just delete the discriminator, everything should
38
-
work without it by default. To optimize and handle special cases see the relevant section in [Dependent Resource documentation](/docs/dependent-resources#multiple-dependent-resources-of-same-type).
39
-
6.`ConfigurationService.getTerminationTimeoutSeconds` and associated overriding mechanism have been removed,
51
+
6.`ResourceDiscriminator` was removed. In most of the cases you can just delete the discriminator, everything should
52
+
work without it by default. To optimize and handle special cases see the relevant section
53
+
in [Dependent Resource documentation](/docs/dependent-resources#multiple-dependent-resources-of-same-type).
54
+
7.`ConfigurationService.getTerminationTimeoutSeconds` and associated overriding mechanism have been removed,
40
55
use `Operator.stop(Duration)` instead.
41
-
7.`Operator.installShutdownHook()` has been removed, use `Operator.installShutdownHook(Duration)` instead
56
+
8.`Operator.installShutdownHook()` has been removed, use `Operator.installShutdownHook(Duration)` instead
Copy file name to clipboardExpand all lines: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/DefaultResourceConfiguration.java
+1
Original file line number
Diff line number
Diff line change
@@ -88,4 +88,5 @@ public Optional<ItemStore<R>> getItemStore() {
Copy file name to clipboardExpand all lines: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/dependent/EventSourceProvider.java
Copy file name to clipboardExpand all lines: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/external/AbstractPollingDependentResource.java
Copy file name to clipboardExpand all lines: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/external/PerResourcePollingDependentResource.java
0 commit comments