File tree Expand file tree Collapse file tree
src/main/java/io/github/kubesys/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
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 >
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments