Skip to content

Commit

Permalink
Merge pull request #355 from java-operator-sdk/openshift
Browse files Browse the repository at this point in the history
fix: make it possible to inject OpenShiftClient instead of plain k8s
  • Loading branch information
metacosm authored Mar 8, 2021
2 parents 82f5316 + c7756a9 commit f1cdb6c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion operator-framework-quarkus-extension/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-kubernetes-client-deployment</artifactId>
<artifactId>quarkus-openshift-client-deployment</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
Expand Down
2 changes: 1 addition & 1 deletion operator-framework-quarkus-extension/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-kubernetes-client</artifactId>
<artifactId>quarkus-openshift-client</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
Expand Down
2 changes: 1 addition & 1 deletion operator-framework-quarkus-extension/tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-test-kubernetes-client</artifactId>
<artifactId>quarkus-test-openshift-client</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.javaoperatorsdk.operator.sample;

import io.fabric8.openshift.client.OpenShiftClient;
import io.javaoperatorsdk.operator.Operator;
import io.quarkus.runtime.Quarkus;
import io.quarkus.runtime.QuarkusApplication;
Expand All @@ -10,6 +11,7 @@
public class QuarkusOperator implements QuarkusApplication {

@Inject Operator operator;
@Inject OpenShiftClient client;

public static void main(String... args) {
Quarkus.run(QuarkusOperator.class, args);
Expand Down

0 comments on commit f1cdb6c

Please sign in to comment.