Skip to content

Commit 6ad00a4

Browse files
committed
format
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
1 parent 2ad39b6 commit 6ad00a4

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

operator-framework/src/test/java/io/javaoperatorsdk/operator/baseapi/ssaissue/specupdate/SSASpecUpdateIT.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ class SSASpecUpdateIT {
1717
LocallyRunOperatorExtension operator =
1818
LocallyRunOperatorExtension.builder().withReconciler(SSASpecUpdateReconciler.class).build();
1919

20+
// showcases that is the spec of the resources is updated with SSA, but the finalizer
21+
// is not explicitly added to the fresh resource it removes the finalizer
2022
@Test
2123
void showFinalizerRemovalWhenSpecUpdated() {
2224
SSASpecUpdateCustomResource res = createResource();

operator-framework/src/test/java/io/javaoperatorsdk/operator/baseapi/ssaissue/specupdate/SSASpecUpdateReconciler.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ public UpdateControl<SSASpecUpdateCustomResource> reconcile(
1818

1919
var copy = createFreshCopy(resource);
2020
copy.getSpec().setValue("value");
21-
context.getClient().resource(copy).fieldManager(context.getControllerConfiguration()
22-
.fieldManager())
23-
.serverSideApply();
21+
context
22+
.getClient()
23+
.resource(copy)
24+
.fieldManager(context.getControllerConfiguration().fieldManager())
25+
.serverSideApply();
2426

2527
return UpdateControl.noUpdate();
2628
}

0 commit comments

Comments
 (0)