forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[quarkusio#22367] Explicitly register io.fabric8.kubernetes.client.Ve…
…rsionInfo class for reflection
- Loading branch information
1 parent
98a0ac0
commit c31b378
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...ration-tests/kubernetes-client/src/main/java/io/quarkus/it/kubernetes/client/Version.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package io.quarkus.it.kubernetes.client; | ||
|
||
import javax.ws.rs.GET; | ||
import javax.ws.rs.Path; | ||
import javax.ws.rs.core.Response; | ||
|
||
import io.fabric8.kubernetes.client.KubernetesClient; | ||
|
||
@Path("/version") | ||
public class Version { | ||
|
||
private final KubernetesClient kubernetesClient; | ||
|
||
public Version(KubernetesClient kubernetesClient) { | ||
this.kubernetesClient = kubernetesClient; | ||
} | ||
|
||
@GET | ||
public Response version() { | ||
return Response.ok(kubernetesClient.getKubernetesVersion().getPlatform()).build(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters