Skip to content

Commit 67d4127

Browse files
committed
wip
Signed-off-by: Attila Mészáros <[email protected]>
1 parent d54cd39 commit 67d4127

File tree

3 files changed

+5
-17
lines changed

3 files changed

+5
-17
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/PrimaryUpdateAndCacheUtils.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@
4545
* caches the updated resource from the response in an overlay cache on top of the Informer cache.
4646
* If the update fails, it reads the primary resource from the cluster, applies the modifications
4747
* again and retries the update.
48+
*
49+
* @deprecated Use {@link ReconcileUtils} that contains the more efficient up-to-date versions of
50+
* the target utils.
4851
*/
52+
@Deprecated(forRemoval = true)
4953
public class PrimaryUpdateAndCacheUtils {
5054

5155
public static final int DEFAULT_MAX_RETRY = 10;

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/ReconcileUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ public class ReconcileUtils {
4343

4444
private ReconcileUtils() {}
4545

46-
// todo move finalizers mtehods & deprecate
4746
// todo test namespace handling
4847
// todo compare resource version if multiple event sources provide the same resource
4948

@@ -816,7 +815,7 @@ public static <P extends HasMetadata> P removeFinalizer(
816815
* @param <P> resource type
817816
*/
818817
@SuppressWarnings("unchecked")
819-
private static <P extends HasMetadata> P conflictRetryingPatch(
818+
public static <P extends HasMetadata> P conflictRetryingPatch(
820819
Context<P> context, UnaryOperator<P> resourceChangesOperator, Predicate<P> preCondition) {
821820
var resource = context.getPrimaryResource();
822821
var client = context.getClient();

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/ReconcilerUtils.java

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)