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: docsy/content/en/blog/releases/v5-release.md
+31-5Lines changed: 31 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,10 +57,9 @@ This interface also implemented some utility methods, which can now be found in
57
57
### Removal of ErrorStatusHandler interface
58
58
59
59
Similarly to `EventSourceInitializer` the `ErrorStatusHandler` interfaceis removed; now the `Reconciler` interfacehas a default method `updateErrorStatus`,
60
-
you can just delete the interfacefrom your `Reconciler`:
60
+
you can delete the interfacefrom your `Reconciler`:
@@ -73,10 +72,37 @@ See [related issue](https://github.com/operator-framework/java-operator-sdk/issu
73
72
74
73
### Named event sources
75
74
76
-
The name is now directly an attribute of an `EventSource.` EventSources were also named in previous releases, but the name was not an attribute. This leads mainly to better internal structures and
77
-
solves issues out of the box. For example, when a dependent resource provides an event source, in some cases, it needs to have a specific name.
75
+
The name is now directly an attribute of an `EventSource`.EventSources were also named in previous releases, but the name was not an attribute. This leads mainly to better internal structures and
76
+
solves issues out of the box. For example, when a dependent resource provides an event source, in some cases, it needs to have a specific name. In a `Reconciler` implementation simply
77
+
use a `List.of(event sources)` instead the `Map<String,EventSource>` as it was before:
There is a new utility class [EventSourceUtils](https://github.com/operator-framework/java-operator-sdk/blob/main/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/EventSourceUtils.java#L10-L10) to help extract event source from workflows and
0 commit comments