Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion util/src/main/java/io/kubernetes/client/util/ClientBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public class ClientBuilder {
// time to refresh exec based credentials
// TODO: Read the expiration from the credential itself
private Duration execCredentialRefreshPeriod = null;
private ApiClient apiClient = null;

/**
* Creates an {@link ApiClient} by calling {@link #standard()} and {@link #build()}.
Expand Down Expand Up @@ -435,8 +436,17 @@ public ClientBuilder setKeyStorePassphrase(String keyStorePassphrase) {
return this;
}

public ApiClient getApiClient() {
return this.apiClient;
}

public ClientBuilder setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
return this;
}

public ApiClient build() {
final ApiClient client = new ApiClient();
final ApiClient client = this.apiClient == null ? new ApiClient() : this.apiClient;

client.setHttpClient(
client
Expand Down
Loading