jvm-operators / abstract-operator

Library/SDK for creating the operators for Kubernetes and Openshift.
Apache License 2.0
60 stars 17 forks source link

What is the main class right now? #56

Closed blublinsky closed 5 years ago

blublinsky commented 5 years ago

In the latest version, class SDKEntrypoint replacing EntryPoint does not have a main method now. Do I need to implement my own main class, that invokes SDKEntrypoint? Is there example of such main somewhere?

jkremser commented 5 years ago

Yeah, I need to update the docs. There is basically no public static void main. The app's entrypoint is defined using the CDI events. example: https://github.com/jvm-operators/abstract-operator/blob/master/src/main/java/io/radanalytics/operator/SDKEntrypoint.java#L83

onStart(@Observes StartupEvent event) ~ main

check also: https://jkremser.github.io/post/spark-operator-quarkus/#static-initializers