Skip to content

Commit ff87240

Browse files
committed
format
1 parent 8052900 commit ff87240

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

operator-framework/src/test/java/io/javaoperatorsdk/operator/LeaderElectionIT.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
class LeaderElectionIT {
66

7-
@Test
8-
void leaderElection() {
7+
@Test
8+
void leaderElection() {
99

10-
}
10+
}
1111

1212
}

operator-framework/src/test/java/io/javaoperatorsdk/operator/sample/leaderelection/LeaderElectionTestCustomResource.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import io.fabric8.kubernetes.api.model.Namespaced;
44
import io.fabric8.kubernetes.client.CustomResource;
55
import io.fabric8.kubernetes.model.annotation.Group;
6-
import io.fabric8.kubernetes.model.annotation.Kind;
76
import io.fabric8.kubernetes.model.annotation.ShortNames;
87
import io.fabric8.kubernetes.model.annotation.Version;
98

operator-framework/src/test/java/io/javaoperatorsdk/operator/sample/leaderelection/LeaderElectionTestCustomResourceStatus.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55

66
public class LeaderElectionTestCustomResourceStatus {
77

8-
private List<String> reconciledBy;
8+
private List<String> reconciledBy;
99

10-
public List<String> getReconciledBy() {
11-
if (reconciledBy == null) {
12-
reconciledBy = new ArrayList<>();
13-
}
14-
return reconciledBy;
10+
public List<String> getReconciledBy() {
11+
if (reconciledBy == null) {
12+
reconciledBy = new ArrayList<>();
1513
}
14+
return reconciledBy;
15+
}
1616

17-
public LeaderElectionTestCustomResourceStatus setReconciledBy(List<String> reconciledBy) {
18-
this.reconciledBy = reconciledBy;
19-
return this;
20-
}
17+
public LeaderElectionTestCustomResourceStatus setReconciledBy(List<String> reconciledBy) {
18+
this.reconciledBy = reconciledBy;
19+
return this;
20+
}
2121
}

operator-framework/src/test/java/io/javaoperatorsdk/operator/sample/leaderelection/LeaderElectionTestReconciler.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package io.javaoperatorsdk.operator.sample.leaderelection;
22

3-
import io.javaoperatorsdk.operator.api.reconciler.*;
4-
53
import java.time.Duration;
64

5+
import io.javaoperatorsdk.operator.api.reconciler.*;
6+
77
@ControllerConfiguration()
88
public class LeaderElectionTestReconciler
99
implements Reconciler<LeaderElectionTestCustomResource> {
@@ -16,7 +16,8 @@ public LeaderElectionTestReconciler(String reconcilerName) {
1616

1717
@Override
1818
public UpdateControl<LeaderElectionTestCustomResource> reconcile(
19-
LeaderElectionTestCustomResource resource, Context<LeaderElectionTestCustomResource> context) {
19+
LeaderElectionTestCustomResource resource,
20+
Context<LeaderElectionTestCustomResource> context) {
2021

2122
if (resource.getStatus() == null) {
2223
resource.setStatus(new LeaderElectionTestCustomResourceStatus());

0 commit comments

Comments
 (0)