Skip to content

Commit 7ac3317

Browse files
committed
docs
Signed-off-by: Attila Mészáros <csviri@gmail.com>
1 parent 6976f7d commit 7ac3317

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

docs/documentation/v5-0-migration.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ permalink: /docs/v5-0-migration
1717
[`EventSourceUtils`](https://github.com/operator-framework/java-operator-sdk/blob/main/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/EventSourceUtils.java#L11-L11)
1818
now contains all the utility methods used for event sources naming that were previously defined in
1919
the `EventSourceInitializer` interface.
20+
3. Patching status through `UpdateControl` like the `patchStatus` method now by default
21+
uses Server Side Apply instead of simple patch. To use the former approach, use the feature flag
22+
in [`ConfigurationService`](https://github.com/operator-framework/java-operator-sdk/blob/main/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/ConfigurationService.java#L400-L400)

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/ConfigurationService.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,10 @@ default boolean parseResourceVersionsForEventFilteringAndCaching() {
392392
}
393393

394394
/**
395-
* {@link io.javaoperatorsdk.operator.api.reconciler.UpdateControl} patchStatus
395+
* {@link io.javaoperatorsdk.operator.api.reconciler.UpdateControl} patchStatus can either use
396+
* simple update or SSA for status subresource patching.
397+
*
398+
* @return true by default
396399
*/
397400
default boolean useSSAForResourceStatusPatch() {
398401
return true;

0 commit comments

Comments
 (0)