File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
sample-operators/webpage/src/main/java/io/javaoperatorsdk/operator/sample Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import java .io .IOException ;
4
4
5
- import io .javaoperatorsdk .operator .api .config .LeaderElectionConfiguration ;
6
5
import org .slf4j .Logger ;
7
6
import org .slf4j .LoggerFactory ;
8
7
import org .takes .facets .fork .FkRegex ;
13
12
import io .fabric8 .kubernetes .client .KubernetesClient ;
14
13
import io .fabric8 .kubernetes .client .KubernetesClientBuilder ;
15
14
import io .javaoperatorsdk .operator .Operator ;
15
+ import io .javaoperatorsdk .operator .api .config .LeaderElectionConfiguration ;
16
16
17
17
public class WebPageOperator {
18
18
public static final String WEBPAGE_RECONCILER_ENV = "WEBPAGE_RECONCILER" ;
@@ -25,7 +25,8 @@ public static void main(String[] args) throws IOException {
25
25
log .info ("WebServer Operator starting!" );
26
26
27
27
KubernetesClient client = new KubernetesClientBuilder ().build ();
28
- Operator operator = new Operator (client ,o ->o .withLeaderElectionConfiguration (new LeaderElectionConfiguration ("nameaa" )));
28
+ Operator operator = new Operator (client ,
29
+ o -> o .withLeaderElectionConfiguration (new LeaderElectionConfiguration ("nameaa" )));
29
30
String reconcilerEnvVar = System .getenv (WEBPAGE_RECONCILER_ENV );
30
31
if (WEBPAGE_CLASSIC_RECONCILER_ENV_VALUE .equals (reconcilerEnvVar )) {
31
32
operator .register (new WebPageReconciler (client ));
You can’t perform that action at this time.
0 commit comments