Skip to content

Commit 2102e1d

Browse files
committed
Fix the initialization of the client.
1 parent dd979d0 commit 2102e1d

File tree

1 file changed

+1
-1
lines changed
  • util/src/main/java/io/kubernetes/client/util

1 file changed

+1
-1
lines changed

util/src/main/java/io/kubernetes/client/util/Config.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static ApiClient fromCluster() throws IOException {
5454
ApiClient result = new ApiClient();
5555
result.setBasePath("https://" + host + ":" + port);
5656
result.setSslCaCert(caCert);
57-
result.setAccessToken(builder.toString());
57+
result.setApiKey("Bearer " + builder.toString());
5858

5959
return result;
6060
}

0 commit comments

Comments
 (0)