File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed
samples/pure-java/src/main/java/io/javaoperatorsdk/operator/sample Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change 11package io .javaoperatorsdk .operator .sample ;
22
3- import java .util .concurrent .atomic .LongAccumulator ;
3+ import io .fabric8 .kubernetes .client .DefaultKubernetesClient ;
4+ import io .fabric8 .kubernetes .client .KubernetesClient ;
5+ import io .javaoperatorsdk .operator .Operator ;
6+ import io .javaoperatorsdk .operator .config .runtime .DefaultConfigurationService ;
47
58public class PureJavaApplicationRunner {
69
710 public static void main (String [] args ) {
8- // KubernetesClient client = new DefaultKubernetesClient();
9- // Operator operator = new Operator(client, DefaultConfigurationService.INSTANCE);
10- // operator.registerController(new CustomServiceController(client));
11-
12- final var acc = new LongAccumulator (Long ::min , Integer .MAX_VALUE );
13- acc .accumulate (10 );
14- acc .accumulate (20 );
15- acc .accumulate (90 );
16-
17- System .out .println (acc .get ());
11+ KubernetesClient client = new DefaultKubernetesClient ();
12+ Operator operator = new Operator (client , DefaultConfigurationService .instance ());
13+ operator .registerController (new CustomServiceController (client ));
1814 }
1915}
You can’t perform that action at this time.
0 commit comments