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: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/PrimaryUpdateAndCacheUtils.java
-58Lines changed: 0 additions & 58 deletions
Original file line number
Diff line number
Diff line change
@@ -375,62 +375,4 @@ public static <P extends HasMetadata> P addFinalizerWithSSA(
375
375
e);
376
376
}
377
377
}
378
-
379
-
/**
380
-
* Experimental. Patches finalizer. For retry uses informer cache to get the fresh resources,
381
-
* therefore makes less Kubernetes API Calls.
382
-
*/
383
-
@Experimental(
384
-
"Not used internally for now. Therefor we don't consider it well tested. But the intention is"
385
-
+ " to have it as default in the future.")
386
-
publicstatic <PextendsHasMetadata> PaddFinalizer(
387
-
Presource, Stringfinalizer, Context<P> context) {
388
-
389
-
if (resource.hasFinalizer(finalizer)) {
390
-
log.debug("Skipping adding finalizer, since already present.");
391
-
returnresource;
392
-
}
393
-
394
-
returnupdateAndCacheResource(
395
-
resource,
396
-
context,
397
-
r -> r,
398
-
r ->
399
-
context
400
-
.getClient()
401
-
.resource(r)
402
-
.edit(
403
-
res -> {
404
-
res.addFinalizer(finalizer);
405
-
returnres;
406
-
}));
407
-
}
408
-
409
-
/**
410
-
* Experimental. Removes finalizer, for retry uses informer cache to get the fresh resources,
411
-
* therefore makes less Kubernetes API Calls.
412
-
*/
413
-
@Experimental(
414
-
"Not used internally for now. Therefor we don't consider it well tested. But the intention is"
0 commit comments