File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
samples/quarkus/src/main/java/io/javaoperatorsdk/operator/sample Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change 1
1
package io .javaoperatorsdk .operator .sample ;
2
2
3
- import io .fabric8 .kubernetes.client .KubernetesClient ;
4
3
import io .javaoperatorsdk .operator .Operator ;
5
- import io .javaoperatorsdk .operator .api .config .ConfigurationService ;
6
4
import io .quarkus .runtime .Quarkus ;
7
5
import io .quarkus .runtime .QuarkusApplication ;
8
6
import io .quarkus .runtime .annotations .QuarkusMain ;
11
9
@ QuarkusMain
12
10
public class QuarkusOperator implements QuarkusApplication {
13
11
14
- @ Inject KubernetesClient client ;
15
-
16
12
@ Inject Operator operator ;
17
13
18
- @ Inject ConfigurationService configuration ;
19
-
20
- @ Inject CustomServiceController controller ;
21
-
22
14
public static void main (String ... args ) {
23
15
Quarkus .run (QuarkusOperator .class , args );
24
16
}
25
17
26
18
@ Override
27
19
public int run (String ... args ) throws Exception {
28
- final var config = configuration .getConfigurationFor (controller );
29
- System .out .println ("CR class: " + config .getCustomResourceClass ());
20
+ operator .start ();
30
21
Quarkus .waitForExit ();
31
22
return 0 ;
32
23
}
You can’t perform that action at this time.
0 commit comments