Skip to content

Commit 0dd2614

Browse files
authored
Merge pull request #75 from brendandburns/proto
Fix the cluster initialization of the client.
2 parents 9c976bf + 2102e1d commit 0dd2614

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)