File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
util/src/main/java/io/kubernetes/client/util Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ public class ClientBuilder {
73
73
// time to refresh exec based credentials
74
74
// TODO: Read the expiration from the credential itself
75
75
private Duration execCredentialRefreshPeriod = null ;
76
+ private ApiClient apiClient = null ;
76
77
77
78
/**
78
79
* Creates an {@link ApiClient} by calling {@link #standard()} and {@link #build()}.
@@ -435,8 +436,17 @@ public ClientBuilder setKeyStorePassphrase(String keyStorePassphrase) {
435
436
return this ;
436
437
}
437
438
439
+ public ApiClient getApiClient () {
440
+ return this .apiClient ;
441
+ }
442
+
443
+ public ClientBuilder setApiClient (ApiClient apiClient ) {
444
+ this .apiClient = apiClient ;
445
+ return this ;
446
+ }
447
+
438
448
public ApiClient build () {
439
- final ApiClient client = new ApiClient ();
449
+ final ApiClient client = this . apiClient == null ? new ApiClient () : this . apiClient ;
440
450
441
451
client .setHttpClient (
442
452
client
You can’t perform that action at this time.
0 commit comments