You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/12/20 03:12:03 UTC

[GitHub] [spark] Yikun commented on a change in pull request #34939: [SPARK-37258][K8S][BUILD] Upgrade kubernetes-client to 5.11.0

Yikun commented on a change in pull request #34939:
URL: https://github.com/apache/spark/pull/34939#discussion_r772055958



##########
File path: resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/SparkKubernetesClientFactory.scala
##########
@@ -68,6 +69,8 @@ private[spark] object SparkKubernetesClientFactory extends Logging {
       .getOption(s"$kubernetesAuthConfPrefix.$CLIENT_KEY_FILE_CONF_SUFFIX")
     val clientCertFile = sparkConf
       .getOption(s"$kubernetesAuthConfPrefix.$CLIENT_CERT_FILE_CONF_SUFFIX")
+    // TODO(SPARK-37687): clean up direct usage of OkHttpClient, see also:

Review comment:
       Here are some backgroud on this note (also add the jira: [SPARK-37687](https://issues.apache.org/jira/browse/SPARK-37687)):
   
   - There are [some problems (such as IPV6 based cluster support)](https://github.com/fabric8io/kubernetes-client/issues/2632) on okhttpclient v3, but it's a little bit diffcult to upgrade to v4 [1]
   - Kubernetes client are also consider to[ support other clients](https://github.com/fabric8io/kubernetes-client/issues/3663#issuecomment-997402993) rather than single okhttpclient.
   - Kubernetes client[ add a abstract layer](https://github.com/fabric8io/kubernetes-client/issues/3547) to support variety httpclient, okhttp client as one of supported http clients.
   
   So, we better to consider to cleanup okhttpclient direct usage and use the httpclient which kubernetes client diret supported to reduce the potential risk in future upgrade.




-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org