Skip to content

Commit 8489013

Browse files
committed
wip
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
1 parent 8f5279a commit 8489013

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

sample-operators/tomcat-operator/src/main/java/io/javaoperatorsdk/operator/sample/TomcatOperator.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,10 @@ public static void main(String[] args) throws IOException {
3131
var configLoader = ConfigLoader.getDefault();
3232
Operator operator = new Operator(configLoader.applyConfigs());
3333
operator.register(
34-
new TomcatReconciler(),
35-
configLoader.applyControllerConfigs(TomcatReconciler.TOMCAT_CONTROLLER_NAME));
34+
new TomcatReconciler(), configLoader.applyControllerConfigs(TomcatReconciler.NAME));
3635
operator.register(
3736
new WebappReconciler(operator.getKubernetesClient()),
38-
configLoader.applyControllerConfigs(WebappReconciler.WEBAPP_CONTROLLER_NAME));
37+
configLoader.applyControllerConfigs(WebappReconciler.NAME));
3938
operator.start();
4039

4140
new FtBasic(new TkFork(new FkRegex("/health", "ALL GOOD.")), 8080).start(Exit.NEVER);

sample-operators/tomcat-operator/src/main/java/io/javaoperatorsdk/operator/sample/TomcatReconciler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@
3535
@Dependent(type = DeploymentDependentResource.class),
3636
@Dependent(type = ServiceDependentResource.class)
3737
})
38-
@ControllerConfiguration(name = TomcatReconciler.TOMCAT_CONTROLLER_NAME)
38+
@ControllerConfiguration(name = TomcatReconciler.NAME)
3939
public class TomcatReconciler implements Reconciler<Tomcat> {
4040

41-
public static final String TOMCAT_CONTROLLER_NAME = "tomcat";
41+
public static final String NAME = "tomcat";
4242
private final Logger log = LoggerFactory.getLogger(getClass());
4343

4444
@Override

sample-operators/tomcat-operator/src/main/java/io/javaoperatorsdk/operator/sample/WebappReconciler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@
4747
import io.javaoperatorsdk.operator.processing.event.source.SecondaryToPrimaryMapper;
4848
import io.javaoperatorsdk.operator.processing.event.source.informer.InformerEventSource;
4949

50-
@ControllerConfiguration(name = WebappReconciler.WEBAPP_CONTROLLER_NAME)
50+
@ControllerConfiguration(name = WebappReconciler.NAME)
5151
public class WebappReconciler implements Reconciler<Webapp>, Cleaner<Webapp> {
5252

5353
private static final Logger log = LoggerFactory.getLogger(WebappReconciler.class);
54-
public static final String WEBAPP_CONTROLLER_NAME = "webapp";
54+
public static final String NAME = "webapp";
5555

5656
private final KubernetesClient kubernetesClient;
5757

0 commit comments

Comments
 (0)