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 1
1
package io .javaoperatorsdk .operator .sample ;
2
2
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 ;
4
7
5
8
public class PureJavaApplicationRunner {
6
9
7
10
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 ));
18
14
}
19
15
}
You can’t perform that action at this time.
0 commit comments