public class KubernetesClientBuilder extends Object
Executor or KubernetesClientBuilder.ExecutorSupplier is specified, a default KubernetesClientBuilder.ExecutorSupplier will
be used which creates an unbounded cached thread pool per client.| Modifier and Type | Class and Description |
|---|---|
class |
KubernetesClientBuilder.ConfigNested |
static interface |
KubernetesClientBuilder.ExecutorSupplier |
| Constructor and Description |
|---|
KubernetesClientBuilder() |
public KubernetesClient build()
public KubernetesClientBuilder withConfig(Config config)
public KubernetesClientBuilder withKubernetesSerialization(KubernetesSerialization kubernetesSerialization)
public KubernetesClientBuilder withConfig(String config)
public KubernetesClientBuilder withConfig(InputStream config)
public KubernetesClientBuilder withHttpClientFactory(HttpClient.Factory factory)
public KubernetesClientBuilder withTaskExecutor(Executor executor)
ResourceEventHandler
calls and writing to streams.
Only override if you need more control over the number of task threads used by the kubernetes client.
public KubernetesClientBuilder withTaskExecutorSupplier(KubernetesClientBuilder.ExecutorSupplier executorSupplier)
KubernetesClientBuilder.ExecutorSupplier for async tasks, such as ResourceEventHandler
calls and writing to streams.
There will be a call to KubernetesClientBuilder.ExecutorSupplier.onClose(Executor) when a client is closed.
Only override if you need more control over the number of task threads used by the kubernetes client.
public KubernetesClientBuilder withHttpClientBuilderConsumer(Consumer<HttpClient.Builder> consumer)
HttpClient that is created for this KubernetesClient.consumer - to modify the HttpClient.Builderpublic KubernetesClientBuilder.ConfigNested editOrNewConfig()
Copyright © 2015–2024 Red Hat. All rights reserved.