Skip to content

Commit 137c13d

Browse files
ukclivecoxbrendanburns
authored andcommitted
update proto client to ensure it uses Bearer auth
1 parent 7ad22a7 commit 137c13d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,9 @@ public <T extends Message> ObjectOrStatus<T> request(T.Builder builder, String p
186186
HashMap<String, String> headers = new HashMap<>();
187187
headers.put("Content-Type", MEDIA_TYPE);
188188
headers.put("Accept", MEDIA_TYPE);
189+
String[] localVarAuthNames = new String[] { "BearerToken" };
189190
Request request = apiClient.buildRequest(path, method, new ArrayList<Pair>(), new ArrayList<Pair>(), null,
190-
headers, new HashMap<String, Object>(), new String[0], null);
191+
headers, new HashMap<String, Object>(), localVarAuthNames, null);
191192
if (body != null) {
192193
byte[] bytes = encode(body, apiVersion, kind);
193194
switch (method) {

0 commit comments

Comments
 (0)