Skip to content
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

[Feature][plugin] Add k8s task in task plugin #9425

Merged
merged 14 commits into from
May 18, 2022

Conversation

zhaohehuhu
Copy link
Contributor

@zhaohehuhu zhaohehuhu commented Apr 11, 2022

Purpose of the pull request

Introduce k8s task and support running k8s task on kubernetes

close #9310

Brief change log

Add k8s task module in task plugin

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

@caishunfeng
Copy link
Contributor

I had approve and run the CI

Copy link
Contributor

@caishunfeng caishunfeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add some test (unit test or e2e) and doc for this pr, thanks.

@caishunfeng
Copy link
Contributor

this pr close #9310

@zhongjiajie
Copy link
Member

this pr close #9310

@caishunfeng the keyword close only work in PR describe #9425 (comment)

@caishunfeng
Copy link
Contributor

I had approve to run CI

@codecov-commenter
Copy link

codecov-commenter commented Apr 25, 2022

Codecov Report

Merging #9425 (7d19ee4) into dev (d8b56b8) will decrease coverage by 0.01%.
The diff coverage is 36.33%.

❗ Current head 7d19ee4 differs from pull request most recent head 9ca4b7b. Consider uploading reports for the commit 9ca4b7b to get more accurate results

@@             Coverage Diff              @@
##                dev    #9425      +/-   ##
============================================
- Coverage     40.85%   40.84%   -0.02%     
- Complexity     4630     4681      +51     
============================================
  Files           839      849      +10     
  Lines         34007    34353     +346     
  Branches       3770     3796      +26     
============================================
+ Hits          13895    14030     +135     
- Misses        18782    18983     +201     
- Partials       1330     1340      +10     
Impacted Files Coverage Δ
...nscheduler/api/service/impl/TenantServiceImpl.java 72.47% <0.00%> (-2.06%) ⬇️
.../org/apache/dolphinscheduler/common/Constants.java 80.95% <ø> (ø)
...g/apache/dolphinscheduler/dao/entity/Resource.java 45.88% <0.00%> (-1.68%) ⬇️
...er/server/builder/TaskExecutionContextBuilder.java 68.88% <0.00%> (-3.21%) ⬇️
...er/server/master/runner/WorkflowExecuteThread.java 8.01% <0.00%> (-0.02%) ⬇️
...r/server/master/runner/task/BaseTaskProcessor.java 13.30% <0.00%> (-0.62%) ⬇️
...ver/master/runner/task/ConditionTaskProcessor.java 5.33% <0.00%> (+0.07%) ⬆️
...nscheduler/service/process/ProcessServiceImpl.java 30.70% <0.00%> (-0.15%) ⬇️
...duler/plugin/task/api/K8sTaskExecutionContext.java 0.00% <0.00%> (ø)
...olphinscheduler/plugin/task/api/TaskConstants.java 0.00% <ø> (ø)
... and 21 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d8b56b8...9ca4b7b. Read the comment docs.

@zhaohehuhu zhaohehuhu force-pushed the Feature-9310 branch 4 times, most recently from 74de75e to 007ae86 Compare May 13, 2022 03:38
@caishunfeng
Copy link
Contributor

I had rerun the fail CI job.

@caishunfeng
Copy link
Contributor

caishunfeng commented May 13, 2022

docs/docs/en/guide/task/k8s.md Outdated Show resolved Hide resolved
docs/docs/en/guide/task/k8s.md Outdated Show resolved Hide resolved
docs/docs/en/guide/task/k8s.md Outdated Show resolved Hide resolved
docs/docs/en/guide/task/k8s.md Outdated Show resolved Hide resolved
docs/docs/zh/guide/task/k8s.md Outdated Show resolved Hide resolved
docs/docs/zh/guide/task/k8s.md Outdated Show resolved Hide resolved
devosend
devosend previously approved these changes May 18, 2022
Copy link
Contributor

@devosend devosend left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The part of front-end LGTM

caishunfeng
caishunfeng previously approved these changes May 18, 2022
Copy link
Contributor

@caishunfeng caishunfeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, it's great feature, thans for your contribution.

@zhongjiajie zhongjiajie dismissed stale reviews from caishunfeng and devosend via 9ca4b7b May 18, 2022 08:38
Copy link
Member

@zhongjiajie zhongjiajie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, waiting for CI

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 5 Code Smells

34.8% 34.8% Coverage
0.0% 0.0% Duplication

@caishunfeng caishunfeng merged commit 5bb1eb0 into apache:dev May 18, 2022
rockfang pushed a commit to rockfang/dolphinscheduler that referenced this pull request May 18, 2022
* [Feature][plugin] Add k8s task in task plugin

* [Feature][plugin] fix dos and code problems

* [Feature][plugin] refactor some code based on sonar

* [Feature][UI] front-end for k8s task plugin

* [Feature][plugin] delete some front files

* [Feature][plugin] update document

* Update docs/docs/zh/guide/task/k8s.md

* Update docs/docs/en/guide/task/k8s.md

* Update docs/docs/en/guide/task/k8s.md

* Update docs/docs/en/guide/task/k8s.md

* [Feature][UI] front-end change from review comments

* [Feature][UI] replace get namespace list api

* [Feature][plugin] change file name

* Add kubernetes to zh task list

Co-authored-by: hezhao2 <hezhao2@cisco.com>
Co-authored-by: William Tong <weitong@cisco.com>
Co-authored-by: Jiajie Zhong <zhongjiajie955@gmail.com>
hstdream pushed a commit to hstdream/dolphinscheduler that referenced this pull request Jun 9, 2022
* [Feature][plugin] Add k8s task in task plugin

* [Feature][plugin] fix dos and code problems

* [Feature][plugin] refactor some code based on sonar

* [Feature][UI] front-end for k8s task plugin

* [Feature][plugin] delete some front files

* [Feature][plugin] update document

* Update docs/docs/zh/guide/task/k8s.md

* Update docs/docs/en/guide/task/k8s.md

* Update docs/docs/en/guide/task/k8s.md

* Update docs/docs/en/guide/task/k8s.md

* [Feature][UI] front-end change from review comments

* [Feature][UI] replace get namespace list api

* [Feature][plugin] change file name

* Add kubernetes to zh task list

Co-authored-by: hezhao2 <hezhao2@cisco.com>
Co-authored-by: William Tong <weitong@cisco.com>
Co-authored-by: Jiajie Zhong <zhongjiajie955@gmail.com>
@devosend devosend added this to the 3.1.0-alpha milestone Jun 16, 2022
@davidzollo
Copy link
Contributor

good job, thanks for your first contribution

@zhaohehuhu zhaohehuhu deleted the Feature-9310 branch December 26, 2024 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
first time contributor First-time contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature][plugin] Add k8s task in task plugin
7 participants