Skip to content

Commit 1149282

Browse files
committed
format
Signed-off-by: Attila Mészáros <[email protected]>
1 parent d4f431d commit 1149282

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

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

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -235,56 +235,56 @@ private static <P extends HasMetadata> P pollLocalCache(
235235
* therefore makes less Kubernetes API Calls.
236236
*/
237237
@Experimental(
238-
"Not used internally for now. Therefor we don't consider it well tested. But the intention is"
239-
+ " to have it as default in the future.")
238+
"Not used internally for now. Therefor we don't consider it well tested. But the intention is"
239+
+ " to have it as default in the future.")
240240
public static <P extends HasMetadata> P addFinalizer(
241-
P resource, String finalizer, Context<P> context) {
241+
P resource, String finalizer, Context<P> context) {
242242

243243
if (resource.hasFinalizer(finalizer)) {
244244
log.debug("Skipping adding finalizer, since already present.");
245245
return resource;
246246
}
247247

248248
return updateAndCacheResource(
249-
resource,
250-
context,
251-
r -> r,
252-
r ->
253-
context
254-
.getClient()
255-
.resource(r)
256-
.edit(
257-
res -> {
258-
res.addFinalizer(finalizer);
259-
return res;
260-
}));
249+
resource,
250+
context,
251+
r -> r,
252+
r ->
253+
context
254+
.getClient()
255+
.resource(r)
256+
.edit(
257+
res -> {
258+
res.addFinalizer(finalizer);
259+
return res;
260+
}));
261261
}
262262

263263
/**
264264
* Experimental. Removes finalizer, for retry uses informer cache to get the fresh resources,
265265
* therefore makes less Kubernetes API Calls.
266266
*/
267267
@Experimental(
268-
"Not used internally for now. Therefor we don't consider it well tested. But the intention is"
269-
+ " to have it as default in the future.")
268+
"Not used internally for now. Therefor we don't consider it well tested. But the intention is"
269+
+ " to have it as default in the future.")
270270
public static <P extends HasMetadata> P removeFinalizer(
271-
P resource, String finalizer, Context<P> context) {
271+
P resource, String finalizer, Context<P> context) {
272272
if (!resource.hasFinalizer(finalizer)) {
273273
log.debug("Skipping removing finalizer, since not present.");
274274
return resource;
275275
}
276276
return updateAndCacheResource(
277-
resource,
278-
context,
279-
r -> r,
280-
r ->
281-
context
282-
.getClient()
283-
.resource(r)
284-
.edit(
285-
res -> {
286-
res.removeFinalizer(finalizer);
287-
return res;
288-
}));
277+
resource,
278+
context,
279+
r -> r,
280+
r ->
281+
context
282+
.getClient()
283+
.resource(r)
284+
.edit(
285+
res -> {
286+
res.removeFinalizer(finalizer);
287+
return res;
288+
}));
289289
}
290290
}

0 commit comments

Comments
 (0)