-
Notifications
You must be signed in to change notification settings - Fork 5k
[Fix] Fix k8sTaskExecutionContext setting configYaml #15116
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
Conversation
|
I fixed this issue using other methods, but there may be other issues. Please review :D |
|
Hi @xdu-chenrj , I don't understand how you fix it. Actually, there's nothing wrong with K8S task, but for Spark on K8S, In addition, for other types of task which use |
I will use the Spark task to further correct my fix |
I thought you mainly fix it in this PR, and why |
we need to fix all tasks that use the k8s namespace, such as the Spark task. i didn't get what you meant before. i just looked at some parameters required to create the Spark task. the namespace selected for the previous spark task was created in the cluster management of the security center. now, the Spark task needs to select the k8s connection created in the connection center. we need to refactor other tasks that use the k8s namespace, just like we refactor the k8s task, what do you think? |
For Spark on K8S, k8sTaskExecutionContext
.setConfigYaml(JSONUtils.getNodeString(k8sTaskExecutionContext.getConnectionParams(), "kubeConfig")); |
I have made this modification to the current code |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev #15116 +/- ##
=========================================
Coverage 37.80% 37.81%
Complexity 4701 4701
=========================================
Files 1304 1304
Lines 45219 45217 -2
Branches 4859 4859
=========================================
+ Hits 17097 17099 +2
+ Misses 26259 26255 -4
Partials 1863 1863 ☔ View full report in Codecov by Sentry. |
|
SonarCloud Quality Gate failed.
|
I'm still confused, you should modify this part to avoid NPE k8sTaskExecutionContext
.setConfigYaml(JSONUtils.getNodeString(k8sTaskExecutionContext.getConnectionParams(), "kubeConfig"));OR replace original way to use K8S cluster in other tasks(Spark, KUBEFLOW) with your connection way. In current PR, I don't get how you solve the problem. |
I think the current solution to this problem can only be achieved by adding special judgments until the Spark and Kubelow tasks are refactored |
Radeity
left a comment
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.
LGTM
|
Please run |
sorry |
|
fix typo bug in JSONUtils.java add DBType dolphindb spotless apply & modify ui fix mvn package OK TO DO: Modify DolphinDBDataSourceProcessor fix datasource bug -> connect OK [Improvement-15260][dolphinscheduler-datasource-hana] add hana related dependencies (apache#15260) * add hana related dependencies * optimizing HANA data source bugs * run mvn spotless:apply * Fix hana datasource getValidationQuery() * Fix hana datasource testGetJdbcUrl() --------- Co-authored-by: xujiaqiang <“[email protected]”> Co-authored-by: David Zollo <[email protected]> [Feature-15248][dolphinscheduler-alert-plugins] add alert plugin aliyun-voice (apache#15248) * add alert aliyun-voice * VoiceParam replace these with lombok @DaTa * security.ts add alarm_instance params * optimize alert aliyun vocie code * Merge Code * rollback pnpm-lock.yaml to branch :origin/dev version * add the doc about the new plugin * add com.aliyun.dyvmsapi20170525 version 2.14 * completed * run mvn spotless:apply * Code optimization * Change to @DaTa * Code specification optimization * add com.aliyund.yvmsapi20170525.jar license * modify com.aliyund.yvmsapi20170525.jar license * modify com.aliyund.yvmsapi20170525.jar license * add aliyun-vocie licenses * add aliyun-voice link to docsdev.js * modify vocie module to aliyunVoice * add lisense --------- Co-authored-by: xujiaqiang <“[email protected]”> Co-authored-by: 旺阳 <[email protected]> Co-authored-by: David Zollo <[email protected]> [Feature-15146][dolphinscheduler-task-sqoop] add sqoop source/target type (apache#15146) * task list: sgoop node params optimize * security.ts add alarm_instance params * 1 add SqoopTask params 2 add alert plugin aliyun-voice * add license header * commit sqhoop optimize * pnpm-locl.yaml supplement annotation * remove irrelevent commit. * Code specification optimization * optimize sqoop task ui * Merge Code * add the license header to pnpm-locl.yaml * format the code * format the code * Fix sqoop task echo error --------- Co-authored-by: xujiaqiang <[email protected]> Co-authored-by: xujiaqiang <“[email protected]”> Co-authored-by: David Zollo <[email protected]> finishgit add dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/constants/DataSourceConstants.java Fix k8sTaskExecutionContext setting configYaml (apache#15116) * fixed the issue of obtaining kubeConfig of k8s tasks * removed excess files * removed excess files * formatted the code --------- Co-authored-by: xiangzihao <[email protected]> Co-authored-by: Aaron Wang <[email protected]>
fix typo bug in JSONUtils.java add DBType dolphindb spotless apply & modify ui fix mvn package OK TO DO: Modify DolphinDBDataSourceProcessor fix datasource bug -> connect OK [Improvement-15260][dolphinscheduler-datasource-hana] add hana related dependencies (apache#15260) * add hana related dependencies * optimizing HANA data source bugs * run mvn spotless:apply * Fix hana datasource getValidationQuery() * Fix hana datasource testGetJdbcUrl() --------- Co-authored-by: xujiaqiang <“[email protected]”> Co-authored-by: David Zollo <[email protected]> [Feature-15248][dolphinscheduler-alert-plugins] add alert plugin aliyun-voice (apache#15248) * add alert aliyun-voice * VoiceParam replace these with lombok @DaTa * security.ts add alarm_instance params * optimize alert aliyun vocie code * Merge Code * rollback pnpm-lock.yaml to branch :origin/dev version * add the doc about the new plugin * add com.aliyun.dyvmsapi20170525 version 2.14 * completed * run mvn spotless:apply * Code optimization * Change to @DaTa * Code specification optimization * add com.aliyund.yvmsapi20170525.jar license * modify com.aliyund.yvmsapi20170525.jar license * modify com.aliyund.yvmsapi20170525.jar license * add aliyun-vocie licenses * add aliyun-voice link to docsdev.js * modify vocie module to aliyunVoice * add lisense --------- Co-authored-by: xujiaqiang <“[email protected]”> Co-authored-by: 旺阳 <[email protected]> Co-authored-by: David Zollo <[email protected]> [Feature-15146][dolphinscheduler-task-sqoop] add sqoop source/target type (apache#15146) * task list: sgoop node params optimize * security.ts add alarm_instance params * 1 add SqoopTask params 2 add alert plugin aliyun-voice * add license header * commit sqhoop optimize * pnpm-locl.yaml supplement annotation * remove irrelevent commit. * Code specification optimization * optimize sqoop task ui * Merge Code * add the license header to pnpm-locl.yaml * format the code * format the code * Fix sqoop task echo error --------- Co-authored-by: xujiaqiang <[email protected]> Co-authored-by: xujiaqiang <“[email protected]”> Co-authored-by: David Zollo <[email protected]> finishgit add dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/constants/DataSourceConstants.java Fix k8sTaskExecutionContext setting configYaml (apache#15116) * fixed the issue of obtaining kubeConfig of k8s tasks * removed excess files * removed excess files * formatted the code --------- Co-authored-by: xiangzihao <[email protected]> Co-authored-by: Aaron Wang <[email protected]>
This reverts commit ce11674.
This reverts commit ce11674.











close #15114
Fix k8sTask ExecutionContext setting configYaml