未验证 提交 3d2fba3c 编写于 作者: buzuotaxuan's avatar buzuotaxuan 提交者: GitHub

Fix kubernetes.client.opeanapi.ApiException (#6412)

上级 c45bb361
......@@ -23,6 +23,7 @@ Release Notes.
* Update the Apdex metric combine calculator.
* Enhance `MeterSystem` to allow creating metrics with same `metricName` / `function` / `scope`.
* Storage plugin supports postgresql.
* Fix kubernetes.client.opeanapi.ApiException.
#### UI
* Update selector scroller to show in all pages.
......
......@@ -22,6 +22,7 @@ import io.kubernetes.client.informer.SharedIndexInformer;
import io.kubernetes.client.informer.SharedInformerFactory;
import io.kubernetes.client.informer.cache.Lister;
import io.kubernetes.client.openapi.ApiClient;
import io.kubernetes.client.openapi.Configuration;
import io.kubernetes.client.openapi.apis.CoreV1Api;
import io.kubernetes.client.openapi.models.V1Pod;
import io.kubernetes.client.openapi.models.V1PodList;
......@@ -77,6 +78,7 @@ public enum NamespacedPodListInformer {
ApiClient apiClient = Config.defaultClient();
apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().readTimeout(0, TimeUnit.SECONDS).build());
Configuration.setDefaultApiClient(apiClient);
CoreV1Api coreV1Api = new CoreV1Api(apiClient);
factory = new SharedInformerFactory(executorService);
......
......@@ -22,6 +22,7 @@ import io.kubernetes.client.informer.SharedIndexInformer;
import io.kubernetes.client.informer.SharedInformerFactory;
import io.kubernetes.client.informer.cache.Lister;
import io.kubernetes.client.openapi.ApiClient;
import io.kubernetes.client.openapi.Configuration;
import io.kubernetes.client.openapi.apis.CoreV1Api;
import io.kubernetes.client.openapi.models.V1ConfigMap;
import io.kubernetes.client.openapi.models.V1ConfigMapList;
......@@ -67,6 +68,7 @@ public class ConfigurationConfigmapInformer {
private void doStartConfigMapInformer(final ConfigmapConfigurationSettings settings) throws IOException {
ApiClient apiClient = Config.defaultClient();
apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().readTimeout(0, TimeUnit.SECONDS).build());
Configuration.setDefaultApiClient(apiClient);
CoreV1Api coreV1Api = new CoreV1Api(apiClient);
factory = new SharedInformerFactory(executorService);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册