-
Notifications
You must be signed in to change notification settings - Fork 933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK][K8S] Support auto build Kubernetes client from env when Kyuubi running in Pod #3663
[SPARK][K8S] Support auto build Kubernetes client from env when Kyuubi running in Pod #3663
Conversation
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/KubernetesApplicationOperation.scala
Outdated
Show resolved
Hide resolved
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/KubernetesApplicationOperation.scala
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #3663 +/- ##
============================================
+ Coverage 52.02% 52.42% +0.40%
Complexity 13 13
============================================
Files 485 490 +5
Lines 27202 27515 +313
Branches 3793 3816 +23
============================================
+ Hits 14151 14424 +273
- Misses 11685 11711 +26
- Partials 1366 1380 +14
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
kyuubi-common/src/main/scala/org/apache/kyuubi/config/KyuubiConf.scala
Outdated
Show resolved
Hide resolved
kyuubi-server/src/main/scala/org/apache/kyuubi/util/KubernetesUtils.scala
Outdated
Show resolved
Hide resolved
kyuubi-server/src/main/scala/org/apache/kyuubi/util/KubernetesUtils.scala
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM, just minor comments
kyuubi-server/src/main/scala/org/apache/kyuubi/util/KubernetesUtils.scala
Outdated
Show resolved
Hide resolved
I try my best to understand what you are trying to say about this PR in the PR desc, but failed |
This pr aims to add util object |
refactor only change? |
The PR description is updated and should cover the changes in the PR. Thanks, merging to master |
The CI failure caused by known flaky tests |
Why are the changes needed?
Current kyuubi build kubernetes client for
KyuubiApplicationOperator
to find or kill spark engine on kubernetes.This pr aims to extract the code for building kubernetes client into
KubernetesUtils
and to do auto build following the logic in Spark.We prefer to building with user-configured parameters; When missing, the kubernetes client logic will build one from environment variables and kubeconfig.
How was this patch tested?
Add some test cases that check the changes thoroughly including negative and positive cases if possible
Add screenshots for manual tests if appropriate
Run test locally before make a pull request