wangyang0918 commented on a change in pull request #13644: URL: https://github.com/apache/flink/pull/13644#discussion_r508986718
########## File path: flink-kubernetes/src/main/java/org/apache/flink/kubernetes/kubeclient/KubeClientFactory.java ########## @@ -71,7 +73,12 @@ public static FlinkKubeClient fromConfiguration(Configuration flinkConfig) { final KubernetesClient client = new DefaultKubernetesClient(config); - return new Fabric8FlinkKubeClient(flinkConfig, client, KubeClientFactory::createThreadPoolForAsyncIO); + if (flinkKubeClient == null) { + flinkKubeClient = new Fabric8FlinkKubeClient( + flinkConfig, client, KubeClientFactory::createThreadPoolForAsyncIO); + } Review comment: Currently, in the JobManager process, we have two `flinkKubeClient`s. One is for `KubernetesResourceDriver`, and the other is for `KubernetesHaService`. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org