Skip to content

Commit 4eb057b

Browse files
committed
feat: add start method as entrypoint and output version information
Fixes #313 Fixes #314
1 parent 8fa839e commit 4eb057b

File tree

1 file changed

+9
-0
lines changed
  • operator-framework-core/src/main/java/io/javaoperatorsdk/operator

1 file changed

+9
-0
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/Operator.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ public Operator(KubernetesClient k8sClient, ConfigurationService configurationSe
2828
this.configurationService = configurationService;
2929
}
3030

31+
public void start() {
32+
final var version = configurationService.getVersion();
33+
log.info(
34+
"Operator {} (commit: {}) built on {} starting…",
35+
version.getProject(),
36+
version.getCommit(),
37+
version.getBuiltTime());
38+
}
39+
3140
public <R extends CustomResource> void register(ResourceController<R> controller)
3241
throws OperatorException {
3342
register(controller, null);

0 commit comments

Comments
 (0)