Skip to content

Commit 350b396

Browse files
committed
update version
1 parent 4d9d961 commit 350b396

3 files changed

Lines changed: 7 additions & 10 deletions

File tree

pom.xml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>io.github.kubesys</groupId>
77
<artifactId>kubernetes-client</artifactId>
8-
<version>2.2.2</version>
8+
<version>2.2.3</version>
99
<packaging>jar</packaging>
1010

1111
<name>kubernetes-client</name>
@@ -62,14 +62,7 @@
6262
<version>${junit.version}</version>
6363
<scope>test</scope>
6464
</dependency>
65-
66-
<!-- https://mvnrepository.com/artifact/io.fabric8/kubernetes-client -->
67-
<!-- <dependency>
68-
<groupId>io.fabric8</groupId>
69-
<artifactId>kubernetes-client</artifactId>
70-
<version>5.8.0</version>
71-
</dependency> -->
72-
65+
7366
</dependencies>
7467

7568
<build>

src/main/java/io/github/kubesys/client/KubernetesClient.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public class KubernetesClient {
9999
* @throws Exception exception
100100
*/
101101
public KubernetesClient() throws Exception {
102-
this(new File("/etc/kubernetes/admin.conf"));
102+
this(new File(KubernetesConstants.KUBE_CONFIG));
103103
}
104104

105105
/**
@@ -1076,6 +1076,7 @@ public KubeBaseRequest(JsonNode json) throws Exception {
10761076
*/
10771077
protected CloseableHttpClient createDefaultHttpClient() throws Exception {
10781078

1079+
@SuppressWarnings("deprecation")
10791080
RequestConfig requestConfig = RequestConfig.custom()
10801081
.setConnectTimeout(Timeout.DISABLED)
10811082
.setConnectionKeepAlive(Timeout.DISABLED)
@@ -1335,6 +1336,7 @@ protected synchronized JsonNode parseResponse(CloseableHttpResponse response) {
13351336
* @return json json
13361337
* @throws Exception exception
13371338
*/
1339+
@SuppressWarnings("deprecation")
13381340
public synchronized JsonNode getResponse(HttpUriRequestBase req) throws Exception {
13391341
return parseResponse(httpClient.execute(req));
13401342
}

src/main/java/io/github/kubesys/client/KubernetesConstants.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ private KubernetesConstants() {
6161
* Kubernetes json structure
6262
*
6363
*************************************/
64+
65+
public static final String KUBE_CONFIG = "/etc/kubernetes/admin.conf";
6466

6567
public static final String KUBE_KIND = "kind";
6668

0 commit comments

Comments
 (0)