Skip to content

Commit 4cec7b9

Browse files
author
Lars Wander
committed
Fix util package after change openapi update
1 parent 13b2813 commit 4cec7b9

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

kubernetes/.swagger-codegen-ignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ git_push.sh
33
# Remove this once swagger-codegen 2.3.0 is released and we update.
44
# Verify the following PRs are in the release:
55
# * https://github.com/swagger-api/swagger-codegen/pull/6230
6-
# src/main/java/io/kubernetes/client/JSON.java
7-
# src/main/java/io/kubernetes/client/ApiClient.java
6+
src/main/java/io/kubernetes/client/JSON.java
7+
src/main/java/io/kubernetes/client/ApiClient.java
88

kubernetes/src/main/java/io/kubernetes/client/ApiClient.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ public ApiClient() {
9090
// Setup authentications (key: authentication name, value: authentication).
9191
authentications = new HashMap<String, Authentication>();
9292
authentications.put("BearerToken", new ApiKeyAuth("header", "authorization"));
93+
authentications.put("BasicAuth", new HttpBasicAuth());
9394
// Prevent the authentications from being modified.
9495
authentications = Collections.unmodifiableMap(authentications);
9596
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public static <T> Watch<T> createWatch(ApiClient client, Call call, Type watchTy
8080
}
8181
throw new ApiException(response.message(), response.code(), response.headers().toMultimap(), respBody);
8282
}
83-
return new Watch<>(new JSON(client), response.body(), watchType);
83+
return new Watch<>(client.getJSON(), response.body(), watchType);
8484
} catch (IOException e) {
8585
throw new ApiException(e);
8686
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public static void stream(String path, String method, ApiClient client, SocketLi
8787
headers.put(HttpHeaders.CONNECTION, HttpHeaders.UPGRADE);
8888
headers.put(HttpHeaders.UPGRADE, SPDY_3_1);
8989

90-
Request request = client.buildRequest(path, method, new ArrayList<Pair>(), null, headers, new HashMap<String, Object>(), new String[0], null);
90+
Request request = client.buildRequest(path, method, new ArrayList<Pair>(), new ArrayList<Pair>(), null, headers, new HashMap<String, Object>(), new String[0], null);
9191
WebSocketCall.create(client.getHttpClient(), request).enqueue(new Listener(listener));
9292
}
9393

0 commit comments

Comments
 (0)