Compare commits
274 Commits
dev
...
3.1.6-rele
| Author | SHA1 | Date |
|---|---|---|
|
|
acf317ab2e | |
|
|
e74de04d1b | |
|
|
7780fdc2f5 | |
|
|
be2157f5da | |
|
|
7eaa20f8f0 | |
|
|
16bc5aa5f3 | |
|
|
5a996c11d2 | |
|
|
4fda0b453c | |
|
|
c38fe93d7c | |
|
|
41cd1f8266 | |
|
|
219bb21f4a | |
|
|
b78e42f496 | |
|
|
0418b0587e | |
|
|
b328b71a6d | |
|
|
0f677de0b7 | |
|
|
ca10898c53 | |
|
|
6212207dd7 | |
|
|
74f154d3ae | |
|
|
a64421e8e7 | |
|
|
591b4c9141 | |
|
|
8829bea86d | |
|
|
7e134b24ef | |
|
|
9d303a017b | |
|
|
dc40cd76bc | |
|
|
c4efc242ff | |
|
|
897d3d3973 | |
|
|
f13c2d7a12 | |
|
|
0df149c370 | |
|
|
298091bf3b | |
|
|
daabcdaa01 | |
|
|
9e5b0a1cc3 | |
|
|
b547024baf | |
|
|
51999267b7 | |
|
|
c759675312 | |
|
|
45b07a3f5d | |
|
|
c5a5ff7a74 | |
|
|
68c8d5502f | |
|
|
96601fef4c | |
|
|
7b24efb715 | |
|
|
eae10c9287 | |
|
|
eea397a0dd | |
|
|
cdb70824c4 | |
|
|
3eeff662bc | |
|
|
ecfdebebae | |
|
|
76a1a6dfcb | |
|
|
e84a80f6d4 | |
|
|
6898c149a8 | |
|
|
43a3fdf90b | |
|
|
3f94c3cb32 | |
|
|
bf8480b247 | |
|
|
9d2140a651 | |
|
|
c41154642f | |
|
|
71a2d38a7f | |
|
|
d2b0b34cb0 | |
|
|
2d6393d722 | |
|
|
20e98691b6 | |
|
|
36284f9b9c | |
|
|
3fedc8c8b8 | |
|
|
bfb36b8eb6 | |
|
|
da937b42bd | |
|
|
ece9e77edb | |
|
|
899402ac6a | |
|
|
84d33a1b0f | |
|
|
4013b0679d | |
|
|
1d04aefb74 | |
|
|
05f3417ea4 | |
|
|
299619c511 | |
|
|
5d3f9f2a01 | |
|
|
172ebdf04e | |
|
|
4a3299ac8c | |
|
|
98a8abee40 | |
|
|
0691d6a887 | |
|
|
3d605ded03 | |
|
|
4993ef0344 | |
|
|
4d29460959 | |
|
|
f83b08ac01 | |
|
|
450e8ee1b6 | |
|
|
a12058609f | |
|
|
ba4a1deb6b | |
|
|
e1e36f5aa4 | |
|
|
b75f241d97 | |
|
|
b973272f15 | |
|
|
d27d27f7d7 | |
|
|
664b17ae96 | |
|
|
afeadbe16b | |
|
|
a645cb1c2a | |
|
|
7fa8454906 | |
|
|
89f84ed166 | |
|
|
b46ced7af6 | |
|
|
47c06ae041 | |
|
|
543626aa7a | |
|
|
9564bdeefb | |
|
|
aa18878122 | |
|
|
5f888c4c1f | |
|
|
ce5fda89ca | |
|
|
fbbfbda9ed | |
|
|
32a76ee419 | |
|
|
6b7bcda380 | |
|
|
fa78b95a76 | |
|
|
84b1f6dcd2 | |
|
|
1796577b53 | |
|
|
f71b864eee | |
|
|
dc0d46f1aa | |
|
|
83e2c14be1 | |
|
|
a3a9cb9d46 | |
|
|
f1aefae5e2 | |
|
|
116eff6663 | |
|
|
ccc3a61301 | |
|
|
6e520fe8f7 | |
|
|
87c0a1141a | |
|
|
56ca041182 | |
|
|
1bfd8f5327 | |
|
|
6ed1605680 | |
|
|
416c41465d | |
|
|
696d8ae7f1 | |
|
|
682829e4ea | |
|
|
a87206228a | |
|
|
9e262a8771 | |
|
|
b7c994041e | |
|
|
f27db04a8b | |
|
|
00cb3f85ec | |
|
|
99b86d112b | |
|
|
3579008c45 | |
|
|
5221428340 | |
|
|
6551112700 | |
|
|
3802599279 | |
|
|
a8f86de597 | |
|
|
d4c6ec4fa1 | |
|
|
3afc6e2480 | |
|
|
937d636613 | |
|
|
fc67fab006 | |
|
|
1e816cc757 | |
|
|
018e9219ed | |
|
|
6ffac27dbc | |
|
|
c592bcfbb6 | |
|
|
0a88528deb | |
|
|
5fe9b5c316 | |
|
|
0512e7696f | |
|
|
48ad9ff412 | |
|
|
efc0367999 | |
|
|
fe3e93861f | |
|
|
145c5ac8cb | |
|
|
525a6846ac | |
|
|
0fcbc5e401 | |
|
|
251756f410 | |
|
|
0156a64000 | |
|
|
b446b260f4 | |
|
|
9126e1d1fc | |
|
|
a8113f05ee | |
|
|
c7f990791e | |
|
|
4fcdba2c0c | |
|
|
cb3a38332f | |
|
|
7f3193643a | |
|
|
215c571c8d | |
|
|
e8edebc9d9 | |
|
|
43650bf721 | |
|
|
2481e68a19 | |
|
|
9957df1c41 | |
|
|
135d70da09 | |
|
|
0c3ab4335e | |
|
|
64360e5b69 | |
|
|
5eaf105290 | |
|
|
2c93dc6041 | |
|
|
94ef02e9de | |
|
|
cff3df1c45 | |
|
|
7e5a983f00 | |
|
|
c3a7af2d6e | |
|
|
eb449cdd44 | |
|
|
75f6c416fb | |
|
|
af031ef9f8 | |
|
|
826ca39a31 | |
|
|
5598ab01e9 | |
|
|
a5a849f615 | |
|
|
6309b78d37 | |
|
|
1e62855fa9 | |
|
|
eb7b48596c | |
|
|
d742994e62 | |
|
|
a17d0cc5d2 | |
|
|
7ca4438682 | |
|
|
58ef3cccd7 | |
|
|
541105a358 | |
|
|
36ba5a39c5 | |
|
|
a30f2ae8df | |
|
|
f3277277f0 | |
|
|
ab675dcf4b | |
|
|
344293102d | |
|
|
149553c52b | |
|
|
88094f914c | |
|
|
eeb11eedfb | |
|
|
a92f766843 | |
|
|
e04750b81d | |
|
|
dbd747951d | |
|
|
2b32c7b441 | |
|
|
3a14fd07b3 | |
|
|
35608becac | |
|
|
c79115c8d8 | |
|
|
2402b8a6ef | |
|
|
d2e56af838 | |
|
|
2a2802c938 | |
|
|
f0ad67f992 | |
|
|
703f9991b4 | |
|
|
5cfe6a96b4 | |
|
|
39c1144fab | |
|
|
b4f59af9d9 | |
|
|
b559d033d3 | |
|
|
10b7d24c2e | |
|
|
056176afc0 | |
|
|
771dd67b2e | |
|
|
7e39396a76 | |
|
|
ae33ba5947 | |
|
|
beebc5e0ad | |
|
|
f982e1d2a2 | |
|
|
3efe4bc308 | |
|
|
399f62cba2 | |
|
|
7a85b930d7 | |
|
|
a5a941e079 | |
|
|
3e899bee06 | |
|
|
42d8308940 | |
|
|
b0b29ed8e1 | |
|
|
71c51c3c3d | |
|
|
f871a4a41f | |
|
|
c47e088b73 | |
|
|
1e59250055 | |
|
|
1a63f8672a | |
|
|
e7b12bf205 | |
|
|
0d16d7b323 | |
|
|
a2b3659fe9 | |
|
|
f0fda2a9aa | |
|
|
280b7c8545 | |
|
|
cda3110409 | |
|
|
c286c5567a | |
|
|
f4babb773e | |
|
|
806ad1d98c | |
|
|
23d77f8a2a | |
|
|
34950d3c09 | |
|
|
780a509f67 | |
|
|
1513363eed | |
|
|
704043f229 | |
|
|
d7f40b19b5 | |
|
|
775ef98b64 | |
|
|
6f7ba2c634 | |
|
|
714e258be6 | |
|
|
8c6658e3f9 | |
|
|
2a437607ae | |
|
|
7ab4412b5e | |
|
|
9ad6a049c5 | |
|
|
7b58737e22 | |
|
|
0f3b42925f | |
|
|
89b4192d3d | |
|
|
216ceea641 | |
|
|
c11ec05d61 | |
|
|
fcc75ef1c6 | |
|
|
1aba077fb8 | |
|
|
52b79b017e | |
|
|
ed33066178 | |
|
|
f1de1707d5 | |
|
|
113dc4b5c5 | |
|
|
dde6f63c31 | |
|
|
cb063732d7 | |
|
|
f66dedc9da | |
|
|
1ac2e4a8f3 | |
|
|
6f3b4c1624 | |
|
|
e462918ac9 | |
|
|
1ea2e848cd | |
|
|
8eadf5e5aa | |
|
|
5e42f52bdf | |
|
|
c4953e8660 | |
|
|
951f707b61 | |
|
|
cd8f32d876 | |
|
|
f034a09d25 | |
|
|
0647b3e10c | |
|
|
27b69e608a | |
|
|
0f6cc4fe33 | |
|
|
8d1c2d3eeb |
25
.asf.yaml
25
.asf.yaml
|
|
@ -19,18 +19,21 @@ github:
|
||||||
description: Apache DolphinScheduler is the modern data orchestration platform. Agile to create high performance workflow with low-code
|
description: Apache DolphinScheduler is the modern data orchestration platform. Agile to create high performance workflow with low-code
|
||||||
homepage: https://dolphinscheduler.apache.org/
|
homepage: https://dolphinscheduler.apache.org/
|
||||||
labels:
|
labels:
|
||||||
- cloud-native
|
|
||||||
- orchestration
|
|
||||||
- airflow
|
- airflow
|
||||||
- workflow
|
- schedule
|
||||||
- job-scheduler
|
- job-scheduler
|
||||||
|
- oozie
|
||||||
- task-scheduler
|
- task-scheduler
|
||||||
- azkaban
|
- azkaban
|
||||||
- workflow-orchestration
|
- distributed-schedule-system
|
||||||
|
- workflow-scheduling-system
|
||||||
|
- etl-dependency
|
||||||
|
- workflow-platform
|
||||||
|
- cronjob-schedule
|
||||||
|
- job-schedule
|
||||||
|
- task-schedule
|
||||||
- workflow-schedule
|
- workflow-schedule
|
||||||
- powerful-data-pipelines
|
- data-schedule
|
||||||
- data-pipelines
|
|
||||||
dependabot_updates: false
|
|
||||||
enabled_merge_buttons:
|
enabled_merge_buttons:
|
||||||
squash: true
|
squash: true
|
||||||
merge: false
|
merge: false
|
||||||
|
|
@ -38,16 +41,10 @@ github:
|
||||||
protected_branches:
|
protected_branches:
|
||||||
dev:
|
dev:
|
||||||
required_status_checks:
|
required_status_checks:
|
||||||
# strict means "Require branches to be up to date before merging".
|
|
||||||
strict: true
|
|
||||||
contexts:
|
contexts:
|
||||||
- Build
|
- Build
|
||||||
- Unit Test
|
- Unit Test
|
||||||
- E2E
|
- E2E
|
||||||
- Docs
|
|
||||||
- Frontend Build
|
|
||||||
- "Mergeable: milestone-label-check"
|
|
||||||
- "Title Validator"
|
|
||||||
required_pull_request_reviews:
|
required_pull_request_reviews:
|
||||||
dismiss_stale_reviews: true
|
dismiss_stale_reviews: true
|
||||||
required_approving_review_count: 2
|
required_approving_review_count: 1
|
||||||
|
|
|
||||||
21
.dlc.json
21
.dlc.json
|
|
@ -8,32 +8,25 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pattern": "/community/community.html$"
|
"pattern": "/community/community.html$"
|
||||||
},
|
|
||||||
{
|
|
||||||
"pattern": "^https://dolphinscheduler.apache.org"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"replacementPatterns": [
|
"replacementPatterns": [
|
||||||
{
|
{
|
||||||
"pattern": "^/en-us/download/download.html$",
|
"pattern": "^/en-us/download/download.html$",
|
||||||
"replacement": "https://dolphinscheduler.apache.org/en-us/download"
|
"replacement": "https://dolphinscheduler.apache.org/en-us/download/download.html"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pattern": "^/zh-cn/download/download.html$",
|
"pattern": "^/zh-cn/download/download.html$",
|
||||||
"replacement": "https://dolphinscheduler.apache.org/zh-cn/download"
|
"replacement": "https://dolphinscheduler.apache.org/zh-cn/download/download.html"
|
||||||
}
|
|
||||||
],
|
|
||||||
"httpHeaders": [
|
|
||||||
{
|
|
||||||
"urls": ["https://docs.github.com/"],
|
|
||||||
"headers": {
|
|
||||||
"Accept-Encoding": "zstd, br, gzip, deflate"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"timeout": "10s",
|
"timeout": "10s",
|
||||||
"retryOn429": true,
|
"retryOn429": true,
|
||||||
"retryCount": 10,
|
"retryCount": 10,
|
||||||
"fallbackRetryDelay": "1000s",
|
"fallbackRetryDelay": "1000s",
|
||||||
"aliveStatusCodes": [200, 401, 403, 0]
|
"aliveStatusCodes": [
|
||||||
|
200,
|
||||||
|
401,
|
||||||
|
0
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
3
.flake8
3
.flake8
|
|
@ -25,5 +25,4 @@ ignore =
|
||||||
D107, # D107: Don't require docstrings on __init__
|
D107, # D107: Don't require docstrings on __init__
|
||||||
D105, # D105: Missing docstring in magic method
|
D105, # D105: Missing docstring in magic method
|
||||||
# Conflict to Black
|
# Conflict to Black
|
||||||
W503, # W503: Line breaks before binary operators
|
W503 # W503: Line breaks before binary operators
|
||||||
D100 # Missing docstring in public module
|
|
||||||
|
|
|
||||||
|
|
@ -15,40 +15,34 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
/.github/ @SbloodyS
|
/.github/ @kezhenxu94 @SbloodyS
|
||||||
/deploy/ @SbloodyS
|
/deploy/ @kezhenxu94 @caishunfeng
|
||||||
/dolphinscheduler-alert/ @SbloodyS
|
/dolphinscheduler-alert/ @kezhenxu94 @caishunfeng
|
||||||
/dolphinscheduler-api/ @caishunfeng @SbloodyS
|
/dolphinscheduler-e2e/ @kezhenxu94 @SbloodyS
|
||||||
/dolphinscheduler-api-test/ @SbloodyS
|
/dolphinscheduler-api-test/ @SbloodyS
|
||||||
/dolphinscheduler-authentication/ @ruanwenjun
|
/dolphinscheduler-registry/ @kezhenxu94 @caishunfeng @ruanwenjun
|
||||||
/dolphinscheduler-bom/ @ruanwenjun
|
/dolphinscheduler-api/ @caishunfeng @SbloodyS
|
||||||
/dolphinscheduler-common/ @SbloodyS
|
/dolphinscheduler-dao/ @caishunfeng @SbloodyS
|
||||||
/dolphinscheduler-dao/ @SbloodyS @ruanwenjun
|
/dolphinscheduler-dao/src/main/resources/sql/ @zhongjiajie
|
||||||
/dolphinscheduler-dao-plugin/ @SbloodyS @ruanwenjun
|
/dolphinscheduler-common/ @caishunfeng
|
||||||
/dolphinscheduler-data-quality/ @SbloodyS
|
/dolphinscheduler-standalone-server/ @kezhenxu94 @caishunfeng
|
||||||
/dolphinscheduler-datasource-plugin/ @SbloodyS
|
/dolphinscheduler-datasource-plugin/ @caishunfeng
|
||||||
/dolphinscheduler-dist/ @SbloodyS
|
/dolphinscheduler-dist/ @kezhenxu94 @caishunfeng
|
||||||
/dolphinscheduler-e2e/ @SbloodyS
|
/dolphinscheduler-meter/ @caishunfeng @kezhenxu94 @ruanwenjun @EricGao888
|
||||||
/dolphinscheduler-extract/ @ruanwenjun
|
/dolphinscheduler-scheduler-plugin/ @caishunfeng
|
||||||
/dolphinscheduler-master/ @caishunfeng @SbloodyS @ruanwenjun
|
/dolphinscheduler-master/ @caishunfeng @SbloodyS @ruanwenjun
|
||||||
/dolphinscheduler-meter/ @ruanwenjun @EricGao888
|
|
||||||
/dolphinscheduler-microbench/ @SbloodyS @ruanwenjun
|
|
||||||
/dolphinscheduler-registry/ @ruanwenjun
|
|
||||||
/dolphinscheduler-scheduler-plugin/ @ruanwenjun
|
|
||||||
/dolphinscheduler-service/ @caishunfeng
|
|
||||||
/dolphinscheduler-spi/ @caishunfeng
|
|
||||||
/dolphinscheduler-standalone-server/ @SbloodyS
|
|
||||||
/dolphinscheduler-storage-plugin/ @ruanwenjun @SbloodyS
|
|
||||||
/dolphinscheduler-task-plugin/ @caishunfeng @SbloodyS @zhuangchong
|
|
||||||
/dolphinscheduler-tools/ @caishunfeng @SbloodyS @EricGao888
|
|
||||||
/dolphinscheduler-ui/ @songjianet @Amy0104
|
|
||||||
/dolphinscheduler-worker/ @caishunfeng @SbloodyS @ruanwenjun
|
/dolphinscheduler-worker/ @caishunfeng @SbloodyS @ruanwenjun
|
||||||
/dolphinscheduler-yarn-aop/ @ruanwenjun
|
/dolphinscheduler-service/ @caishunfeng
|
||||||
|
/dolphinscheduler-remote/ @caishunfeng
|
||||||
|
/dolphinscheduler-spi/ @caishunfeng
|
||||||
|
/dolphinscheduler-task-plugin/ @caishunfeng @SbloodyS @zhuangchong
|
||||||
|
/dolphinscheduler-tools/ @caishunfeng @SbloodyS @zhongjiajie @EricGao888
|
||||||
|
/script/ @caishunfeng @SbloodyS @zhongjiajie @EricGao888
|
||||||
|
/dolphinscheduler-ui/ @songjianet @Amy0104
|
||||||
|
/docs/ @zhongjiajie @EricGao888
|
||||||
|
/licenses/ @kezhenxu94 @zhongjiajie
|
||||||
|
/images/ @zhongjiajie @EricGao888
|
||||||
|
/style/ @caishunfeng
|
||||||
|
|
||||||
/dolphinscheduler-dao/src/main/resources/sql/ @EricGao888
|
# All pom files
|
||||||
|
pom.xml @kezhenxu94
|
||||||
/script/ @SbloodyS @EricGao888
|
|
||||||
/docs/ @EricGao888 @SbloodyS
|
|
||||||
/licenses/ @EricGao888
|
|
||||||
/images/ @EricGao888
|
|
||||||
/style/ @SbloodyS @EricGao888
|
|
||||||
|
|
|
||||||
|
|
@ -99,8 +99,9 @@ body:
|
||||||
Which version of Apache DolphinScheduler are you running? We only accept bugs report from the LTS projects.
|
Which version of Apache DolphinScheduler are you running? We only accept bugs report from the LTS projects.
|
||||||
options:
|
options:
|
||||||
- dev
|
- dev
|
||||||
- 3.1.x
|
- 3.0.0
|
||||||
- 3.2.x
|
- 2.0.6
|
||||||
|
- 2.0.5
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,77 +0,0 @@
|
||||||
#
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
name: DSIP
|
|
||||||
description: Suggest an idea for this project
|
|
||||||
title: "[DSIP-][Module Name] DSIP title"
|
|
||||||
labels: [ "DSIP", "Waiting for reply" ]
|
|
||||||
body:
|
|
||||||
- type: markdown
|
|
||||||
attributes:
|
|
||||||
value: |
|
|
||||||
For better global communication, Please write in English.
|
|
||||||
|
|
||||||
If you feel the description in English is not clear, then you can append description in Chinese, thanks!
|
|
||||||
|
|
||||||
- type: checkboxes
|
|
||||||
attributes:
|
|
||||||
label: Search before asking
|
|
||||||
description: >
|
|
||||||
Please make sure to search in the [DSIP](https://github.com/apache/dolphinscheduler/issues/14102) first
|
|
||||||
to see whether the same DSIP was created already.
|
|
||||||
options:
|
|
||||||
- label: >
|
|
||||||
I had searched in the [DSIP](https://github.com/apache/dolphinscheduler/issues/14102) and found no
|
|
||||||
similar DSIP.
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: Motivation
|
|
||||||
description: Why you want to do this change?
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: Design Detail
|
|
||||||
description: Your design.
|
|
||||||
placeholder: >
|
|
||||||
It's better to provide a detailed design, such as the design of the interface, the design of the database, etc.
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: Compatibility, Deprecation, and Migration Plan
|
|
||||||
description: >
|
|
||||||
If this feature is related to compatibility, deprecation, or migration, please describe it here.
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: Test Plan
|
|
||||||
description: >
|
|
||||||
How to test this improvement.
|
|
||||||
|
|
||||||
- type: checkboxes
|
|
||||||
attributes:
|
|
||||||
label: Code of Conduct
|
|
||||||
description: |
|
|
||||||
The Code of Conduct helps create a safe space for everyone. We require that everyone agrees to it.
|
|
||||||
options:
|
|
||||||
- label: |
|
|
||||||
I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: markdown
|
|
||||||
attributes:
|
|
||||||
value: "Thanks for completing our form!"
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
name: Feature request
|
name: Feature request
|
||||||
description: Suggest an idea for this project
|
description: Suggest an idea for this project
|
||||||
title: "[Feature][Module Name] Feature title"
|
title: "[Feature][Module Name] Feature title"
|
||||||
labels: [ "feature", "Waiting for reply" ]
|
labels: [ "new feature", "Waiting for reply" ]
|
||||||
body:
|
body:
|
||||||
- type: markdown
|
- type: markdown
|
||||||
attributes:
|
attributes:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<!--Thanks very much for contributing to Apache DolphinScheduler, we are happy that you want to help us improve DolphinScheduler! -->
|
<!--Thanks very much for contributing to Apache DolphinScheduler. Please review https://dolphinscheduler.apache.org/en-us/community/development/pull-request.html before opening a pull request.-->
|
||||||
|
|
||||||
## Purpose of the pull request
|
## Purpose of the pull request
|
||||||
|
|
||||||
|
|
@ -31,7 +31,4 @@ This change added tests and can be verified as follows:
|
||||||
|
|
||||||
(or)
|
(or)
|
||||||
|
|
||||||
## Pull Request Notice
|
|
||||||
[Pull Request Notice](https://github.com/apache/dolphinscheduler/blob/dev/docs/docs/en/contribute/join/pull-request.md)
|
|
||||||
|
|
||||||
If your pull request contain incompatible change, you should also add it to `docs/docs/en/guide/upgrede/incompatible.md`
|
If your pull request contain incompatible change, you should also add it to `docs/docs/en/guide/upgrede/incompatible.md`
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 288f36f8cea1dded676b9c4477a64ff91e50c104
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
#
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
|
|
||||||
# Set addAssignees to 'author' to set the PR creator as the assignee.
|
|
||||||
addAssignees: author
|
|
||||||
|
|
||||||
# Enable it to run on drafts
|
|
||||||
runOnDraft: true
|
|
||||||
|
|
@ -18,54 +18,37 @@
|
||||||
backend:
|
backend:
|
||||||
- 'dolphinscheduler-alert/**/*'
|
- 'dolphinscheduler-alert/**/*'
|
||||||
- 'dolphinscheduler-api/**/*'
|
- 'dolphinscheduler-api/**/*'
|
||||||
- 'dolphinscheduler-authentication/**/*'
|
|
||||||
- 'dolphinscheduler-bom/**/*'
|
|
||||||
- 'dolphinscheduler-common/**/*'
|
- 'dolphinscheduler-common/**/*'
|
||||||
- 'dolphinscheduler-dao/**/*'
|
- 'dolphinscheduler-dao/**/*'
|
||||||
- 'dolphinscheduler-dao-plugin/**/*'
|
|
||||||
- 'dolphinscheduler-data-quality/**/*'
|
- 'dolphinscheduler-data-quality/**/*'
|
||||||
- 'dolphinscheduler-datasource-plugin/**/*'
|
- 'dolphinscheduler-datasource-plugin/**/*'
|
||||||
- 'dolphinscheduler-dist/**/*'
|
- 'dolphinscheduler-dist/**/*'
|
||||||
- 'dolphinscheduler-extract/**/*'
|
|
||||||
- 'dolphinscheduler-master/**/*'
|
- 'dolphinscheduler-master/**/*'
|
||||||
- 'dolphinscheduler-meter/**/*'
|
|
||||||
- 'dolphinscheduler-microbench/**/*'
|
|
||||||
- 'dolphinscheduler-registry/**/*'
|
- 'dolphinscheduler-registry/**/*'
|
||||||
|
- 'dolphinscheduler-remote/**/*'
|
||||||
- 'dolphinscheduler-scheduler-plugin/**/*'
|
- 'dolphinscheduler-scheduler-plugin/**/*'
|
||||||
- 'dolphinscheduler-service/**/*'
|
- 'dolphinscheduler-service/**/*'
|
||||||
- 'dolphinscheduler-spi/**/*'
|
- 'dolphinscheduler-spi/**/*'
|
||||||
- 'dolphinscheduler-standalone-server/**/*'
|
- 'dolphinscheduler-standalone-server/**/*'
|
||||||
- 'dolphinscheduler-storage-plugin/**/*'
|
|
||||||
- 'dolphinscheduler-task-plugin/**/*'
|
- 'dolphinscheduler-task-plugin/**/*'
|
||||||
- 'dolphinscheduler-tools/**/*'
|
- 'dolphinscheduler-tools/**/*'
|
||||||
- 'dolphinscheduler-worker/**/*'
|
- 'dolphinscheduler-worker/**/*'
|
||||||
- 'dolphinscheduler-yarn-aop/**/*'
|
|
||||||
- 'script/**/*'
|
- 'script/**/*'
|
||||||
- '.github/workflows/backend.yml'
|
|
||||||
|
|
||||||
document:
|
document:
|
||||||
- 'docs/**/*'
|
- 'docs/**/*'
|
||||||
- '**/*.md'
|
|
||||||
|
|
||||||
CI&CD:
|
CI&CD:
|
||||||
- any: ['.github/**/*']
|
- any: ['.github/**/*']
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
- any: ['deploy/docker/**/*']
|
- any: ['.deploy/**/*']
|
||||||
|
|
||||||
UI:
|
UI:
|
||||||
- any: ['dolphinscheduler-ui/**/*']
|
- any: ['dolphinscheduler-ui/**/*']
|
||||||
- any: ['.github/workflows/frontend.yml']
|
|
||||||
|
|
||||||
e2e:
|
e2e:
|
||||||
- any: ['dolphinscheduler-e2e/**/*']
|
- any: ['dolphinscheduler-e2e/**/*']
|
||||||
- any: ['dolphinscheduler-api-test/**/*']
|
|
||||||
- any: ['.github/workflows/e2e.yml']
|
|
||||||
- any: ['.github/workflows/api-test.yml']
|
|
||||||
- any: ['.github/workflows/e2e-k8s.yml']
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
- any: ['**/test/**/*']
|
- any: ['dolphinscheduler-api-test/**/*']
|
||||||
|
|
||||||
kubernetes:
|
|
||||||
- any: ['deploy/kubernetes/**/*']
|
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Check License Header
|
- name: Check License Header
|
||||||
uses: apache/skywalking-eyes/header@main
|
uses: apache/skywalking-eyes@30367d8286e324d5efc58de4c70c37ea3648306d
|
||||||
|
|
||||||
- shell: bash
|
- shell: bash
|
||||||
run: ./mvnw spotless:check
|
run: ./mvnw spotless:check
|
||||||
|
|
|
||||||
|
|
@ -1,72 +0,0 @@
|
||||||
################################################################################
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
|
||||||
# or more contributor license agreements. See the NOTICE file
|
|
||||||
# distributed with this work for additional information
|
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
|
||||||
# to you under the Apache License, Version 2.0 (the
|
|
||||||
# "License"); you may not use this file except in compliance
|
|
||||||
# with the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
# Details: https://github.com/apps/boring-cyborg
|
|
||||||
|
|
||||||
###### IssueLink Adder #################################################################################################
|
|
||||||
# Insert Issue (Jira/Github etc) link in PR description based on the Issue ID in PR title.
|
|
||||||
insertIssueLinkInPrDescription:
|
|
||||||
# specify the placeholder for the issue link that should be present in the description
|
|
||||||
descriptionIssuePlaceholderRegexp: "^fix: (.*)$"
|
|
||||||
matchers:
|
|
||||||
# you can have several matches - for different types of issues
|
|
||||||
# only the first matching entry is replaced
|
|
||||||
jiraIssueMatch:
|
|
||||||
# specify the regexp of issue id that you can find in the title of the PR
|
|
||||||
# the match groups can be used to build the issue id (${1}, ${2}, etc.).
|
|
||||||
titleIssueIdRegexp: \[(Feature|Fix|Improvement|Test|E2E|Doc-[0-9]+)\]
|
|
||||||
# the issue link to be added. ${1}, ${2} ... are replaced with the match groups from the
|
|
||||||
# title match (remember to use quotes)
|
|
||||||
descriptionIssueLink: "[${1}](https://github.com/apache/dolphinschedule/${1}/)"
|
|
||||||
|
|
||||||
###### Title Validator #################################################################################################
|
|
||||||
# Verifies if commit/PR titles match the regexp specified
|
|
||||||
verifyTitles:
|
|
||||||
# Regular expression that should be matched by titles of commits or PR
|
|
||||||
titleRegexp: ^\[DSIP-[0-9]+\].*$|^\[Feature-[0-9]+\].*$|^\[Fix-[0-9]+\].*$|^\[Doc-[0-9]+\].*$|^\[Improvement-[0-9]+\].*$|^\[Test-[0-9]+\].*$|^\[E2E-[0-9]+\].*$|^\[CI].*$|^\[Chore].*$
|
|
||||||
# If set to true, it will always check the PR title (as opposed to the individual commits).
|
|
||||||
alwaysUsePrTitle: true
|
|
||||||
# If set to true, it will only check the commit in case there is a single commit.
|
|
||||||
# In case of multiple commits it will check PR title.
|
|
||||||
# This reflects the standard behaviour of Github that for `Squash & Merge` GitHub
|
|
||||||
# uses the PR title rather than commit messages for the squashed commit ¯\_(ツ)_/¯
|
|
||||||
# For single-commit PRs it takes the squashed commit message from the commit as expected.
|
|
||||||
#
|
|
||||||
# If set to false it will check all commit messages. This is useful when you do not squash commits at merge.
|
|
||||||
validateEitherPrOrSingleCommitTitle: true
|
|
||||||
# The title the GitHub status should appear from.
|
|
||||||
statusTitle: "Title Validator"
|
|
||||||
# A custom message to be displayed when the title passes validation.
|
|
||||||
successMessage: "Title Validation successful!"
|
|
||||||
# A custom message to be displayed when the title fails validation.
|
|
||||||
# Allows insertion of ${type} (commit/PR), ${title} (the title validated) and ${regex} (the titleRegexp above).
|
|
||||||
failureMessage: "Wrong ${type} title: ${title}"
|
|
||||||
|
|
||||||
# Various Flags to control behaviour of the "Labeler"
|
|
||||||
labelerFlags:
|
|
||||||
# If this flag is changed to 'false', labels would only be added when the PR is first created
|
|
||||||
# and not when existing PR is updated.
|
|
||||||
# The default is 'true' which means the labels would be added when PR is updated even if they
|
|
||||||
# were removed by the user
|
|
||||||
labelOnPRUpdates: true
|
|
||||||
|
|
||||||
# Comment to be posted to welcome users when they open their first PR
|
|
||||||
firstPRWelcomeComment: >
|
|
||||||
Thanks for opening this pull request! Please check out our contributing guidelines. (https://github.com/apache/dolphinscheduler/blob/dev/docs/docs/en/contribute/join/pull-request.md)
|
|
||||||
|
|
||||||
# Comment to be posted to congratulate user on their first merged PR
|
|
||||||
firstPRMergeComment: >
|
|
||||||
Awesome work, congrats on your first merged pull request!
|
|
||||||
|
|
@ -0,0 +1,46 @@
|
||||||
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
# or more contributor license agreements. See the NOTICE file
|
||||||
|
# distributed with this work for additional information
|
||||||
|
# regarding copyright ownership. The ASF licenses this file
|
||||||
|
# to you under the Apache License, Version 2.0 (the
|
||||||
|
# "License"); you may not use this file except in compliance
|
||||||
|
# with the License. You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
---
|
||||||
|
version: 2
|
||||||
|
mergeable:
|
||||||
|
# we can not use `pull_request.*` which including event `pull_request.labeled`, according to https://github.com/mergeability/mergeable/issues/643,
|
||||||
|
# otherwise mergeable will keep add or remove label endless, we just need this CI act like the default behavior as
|
||||||
|
# GitHub action workflow `pull_requests` https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request like,
|
||||||
|
# which only trigger runs when a pull_request event's activity type is opened, synchronize, or reopened
|
||||||
|
- when: pull_request.opened, pull_request.reopened, pull_request.synchronize
|
||||||
|
name: synchronize change for sql files
|
||||||
|
validate:
|
||||||
|
# Sql files must change synchronize
|
||||||
|
- do: dependent
|
||||||
|
files:
|
||||||
|
- 'dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_h2.sql'
|
||||||
|
- 'dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_mysql.sql'
|
||||||
|
- 'dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_postgresql.sql'
|
||||||
|
message: 'Sql files not change synchronize'
|
||||||
|
# Add labels 'sql not sync' and comment to reviewers if Sql files not change synchronize
|
||||||
|
fail:
|
||||||
|
- do: comment
|
||||||
|
payload:
|
||||||
|
body: >
|
||||||
|
:warning: This PR do not change database DDL synchronize.
|
||||||
|
leave_old_comment: false
|
||||||
|
- do: labels
|
||||||
|
add: 'sql not sync'
|
||||||
|
# Remove labels 'sql not sync' if pass
|
||||||
|
pass:
|
||||||
|
- do: labels
|
||||||
|
delete: 'sql not sync'
|
||||||
|
|
@ -20,8 +20,6 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- dev
|
- dev
|
||||||
- '[0-9]+.[0-9]+.[0-9]+-prepare'
|
|
||||||
- '[0-9]+.[0-9]+.[0-9]+-release'
|
|
||||||
|
|
||||||
name: API-Test
|
name: API-Test
|
||||||
|
|
||||||
|
|
@ -37,7 +35,7 @@ jobs:
|
||||||
outputs:
|
outputs:
|
||||||
not-ignore: ${{ steps.filter.outputs.not-ignore }}
|
not-ignore: ${{ steps.filter.outputs.not-ignore }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721
|
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721
|
||||||
id: filter
|
id: filter
|
||||||
with:
|
with:
|
||||||
|
|
@ -51,7 +49,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Sanity Check
|
- name: Sanity Check
|
||||||
|
|
@ -62,20 +60,21 @@ jobs:
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.m2/repository
|
path: ~/.m2/repository
|
||||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-api-test
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||||
restore-keys: ${{ runner.os }}-maven-
|
restore-keys: ${{ runner.os }}-maven-
|
||||||
- name: Build Image
|
- name: Build Image
|
||||||
run: |
|
run: |
|
||||||
./mvnw -B clean install \
|
./mvnw -B clean install \
|
||||||
-Dmaven.test.skip \
|
-Dmaven.test.skip \
|
||||||
-Dmaven.javadoc.skip \
|
-Dmaven.javadoc.skip \
|
||||||
-Dspotless.skip=true \
|
-Dcheckstyle.skip=true \
|
||||||
-Pdocker,release -Ddocker.tag=ci
|
-Pdocker,release -Ddocker.tag=ci \
|
||||||
|
-pl dolphinscheduler-standalone-server -am
|
||||||
- name: Export Docker Images
|
- name: Export Docker Images
|
||||||
run: |
|
run: |
|
||||||
docker save apache/dolphinscheduler-standalone-server:ci -o /tmp/standalone-image.tar \
|
docker save apache/dolphinscheduler-standalone-server:ci -o /tmp/standalone-image.tar \
|
||||||
&& du -sh /tmp/standalone-image.tar
|
&& du -sh /tmp/standalone-image.tar
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v2
|
||||||
name: Upload Docker Images
|
name: Upload Docker Images
|
||||||
with:
|
with:
|
||||||
name: standalone-image
|
name: standalone-image
|
||||||
|
|
@ -91,31 +90,19 @@ jobs:
|
||||||
case:
|
case:
|
||||||
- name: Tenant
|
- name: Tenant
|
||||||
class: org.apache.dolphinscheduler.api.test.cases.TenantAPITest
|
class: org.apache.dolphinscheduler.api.test.cases.TenantAPITest
|
||||||
- name: WorkerGroup
|
|
||||||
class: org.apache.dolphinscheduler.api.test.cases.WorkerGroupAPITest
|
|
||||||
- name: Project
|
|
||||||
class: org.apache.dolphinscheduler.api.test.cases.ProjectAPITest
|
|
||||||
- name: Workflow
|
|
||||||
class: org.apache.dolphinscheduler.api.test.cases.ProcessDefinitionAPITest
|
|
||||||
- name: Scheduler
|
|
||||||
class: org.apache.dolphinscheduler.api.test.cases.SchedulerAPITest
|
|
||||||
- name: Executor
|
|
||||||
class: org.apache.dolphinscheduler.api.test.cases.ExecutorAPITest
|
|
||||||
- name: ProcessInstance
|
|
||||||
class: org.apache.dolphinscheduler.api.test.cases.ProcessInstanceAPITest
|
|
||||||
env:
|
env:
|
||||||
RECORDING_PATH: /tmp/recording-${{ matrix.case.name }}
|
RECORDING_PATH: /tmp/recording-${{ matrix.case.name }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Cache local Maven repository
|
- name: Cache local Maven repository
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.m2/repository
|
path: ~/.m2/repository
|
||||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-api-test
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||||
restore-keys: ${{ runner.os }}-maven-
|
restore-keys: ${{ runner.os }}-maven-
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v2
|
||||||
name: Download Docker Images
|
name: Download Docker Images
|
||||||
with:
|
with:
|
||||||
name: standalone-image
|
name: standalone-image
|
||||||
|
|
@ -127,9 +114,9 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
./mvnw -B -f dolphinscheduler-api-test/pom.xml -am \
|
./mvnw -B -f dolphinscheduler-api-test/pom.xml -am \
|
||||||
-DfailIfNoTests=false \
|
-DfailIfNoTests=false \
|
||||||
-Dspotless.skip=true \
|
-Dcheckstyle.skip=false \
|
||||||
-Dtest=${{ matrix.case.class }} test
|
-Dtest=${{ matrix.case.class }} test
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v2
|
||||||
if: always()
|
if: always()
|
||||||
name: Upload Recording
|
name: Upload Recording
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -42,17 +42,14 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
not-ignore: ${{ steps.filter.outputs.not-ignore }}
|
not-ignore: ${{ steps.filter.outputs.not-ignore }}
|
||||||
db-schema: ${{ steps.filter.outputs.db-schema }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721
|
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721
|
||||||
id: filter
|
id: filter
|
||||||
with:
|
with:
|
||||||
filters: |
|
filters: |
|
||||||
not-ignore:
|
not-ignore:
|
||||||
- '!(docs/**)'
|
- '!(docs/**)'
|
||||||
db-schema:
|
|
||||||
- 'dolphinscheduler-dao/src/main/resources/sql/**'
|
|
||||||
build:
|
build:
|
||||||
name: Backend-Build
|
name: Backend-Build
|
||||||
needs: paths-filter
|
needs: paths-filter
|
||||||
|
|
@ -63,7 +60,7 @@ jobs:
|
||||||
java: [ '8', '11' ]
|
java: [ '8', '11' ]
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Set up JDK ${{ matrix.java }}
|
- name: Set up JDK ${{ matrix.java }}
|
||||||
|
|
@ -78,20 +75,19 @@ jobs:
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.m2/repository
|
path: ~/.m2/repository
|
||||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-backend
|
key: ${{ runner.os }}-maven
|
||||||
restore-keys: ${{ runner.os }}-maven-
|
|
||||||
- name: Build and Package on ${{ matrix.java }}
|
- name: Build and Package on ${{ matrix.java }}
|
||||||
run: |
|
run: |
|
||||||
./mvnw -B clean install \
|
./mvnw -B clean install \
|
||||||
-Prelease \
|
-Prelease,docker \
|
||||||
-Dmaven.test.skip=true \
|
-Dmaven.test.skip=true \
|
||||||
-Dspotless.skip=true \
|
-Dcheckstyle.skip=true \
|
||||||
-Dhttp.keepAlive=false \
|
-Dhttp.keepAlive=false \
|
||||||
-Dmaven.wagon.http.pool=false \
|
-Dmaven.wagon.http.pool=false \
|
||||||
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120
|
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120
|
||||||
- name: Check dependency license
|
- name: Check dependency license
|
||||||
run: tools/dependencies/check-LICENSE.sh
|
run: tools/dependencies/check-LICENSE.sh
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v2
|
||||||
if: ${{ matrix.java == '8' }}
|
if: ${{ matrix.java == '8' }}
|
||||||
name: Upload Binary Package
|
name: Upload Binary Package
|
||||||
with:
|
with:
|
||||||
|
|
@ -106,19 +102,15 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
case:
|
case:
|
||||||
- name: cluster-test-mysql-with-zookeeper-registry
|
- name: cluster-test-mysql
|
||||||
script: .github/workflows/cluster-test/mysql_with_zookeeper_registry/start-job.sh
|
script: .github/workflows/cluster-test/mysql/start-job.sh
|
||||||
- name: cluster-test-mysql-with-mysql-registry
|
- name: cluster-test-postgresql
|
||||||
script: .github/workflows/cluster-test/mysql_with_mysql_registry/start-job.sh
|
script: .github/workflows/cluster-test/postgresql/start-job.sh
|
||||||
- name: cluster-test-postgresql-zookeeper-registry
|
|
||||||
script: .github/workflows/cluster-test/postgresql_with_zookeeper_registry/start-job.sh
|
|
||||||
- name: cluster-test-postgresql-with-postgresql-registry
|
|
||||||
script: .github/workflows/cluster-test/postgresql_with_postgresql_registry/start-job.sh
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v2
|
||||||
name: Download Binary Package
|
name: Download Binary Package
|
||||||
with:
|
with:
|
||||||
# Only run cluster test on jdk8
|
# Only run cluster test on jdk8
|
||||||
|
|
@ -127,147 +119,16 @@ jobs:
|
||||||
- name: Running cluster test
|
- name: Running cluster test
|
||||||
run: |
|
run: |
|
||||||
/bin/bash ${{ matrix.case.script }}
|
/bin/bash ${{ matrix.case.script }}
|
||||||
schema-check:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: ${{ (needs.paths-filter.outputs.db-schema == 'true') || (github.event_name == 'push') }}
|
|
||||||
timeout-minutes: 20
|
|
||||||
needs: build
|
|
||||||
services:
|
|
||||||
mysql:
|
|
||||||
image: mysql:5.7
|
|
||||||
env:
|
|
||||||
MYSQL_ROOT_PASSWORD: mysql
|
|
||||||
MYSQL_DATABASE: dolphinscheduler_dev
|
|
||||||
ports:
|
|
||||||
- 3306:3306
|
|
||||||
options: --name=mysql --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
|
|
||||||
postgres:
|
|
||||||
image: postgres:15
|
|
||||||
env:
|
|
||||||
POSTGRES_PASSWORD: postgres
|
|
||||||
POSTGRES_DB: dolphinscheduler_dev
|
|
||||||
ports:
|
|
||||||
- 5432:5432
|
|
||||||
options: --name=postgres --health-cmd=pg_isready --health-interval=10s --health-timeout=5s --health-retries=5
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
db: ["mysql", "postgresql"]
|
|
||||||
version: ["3.1.9", "3.2.0"]
|
|
||||||
steps:
|
|
||||||
- name: Set up JDK 8
|
|
||||||
uses: actions/setup-java@v2
|
|
||||||
with:
|
|
||||||
java-version: 8
|
|
||||||
distribution: 'adopt'
|
|
||||||
- name: Install Atlas and Create Dir
|
|
||||||
run: |
|
|
||||||
mkdir -p dolphinscheduler/dev dolphinscheduler/${{ matrix.version }}
|
|
||||||
curl -sSf https://atlasgo.sh | sh
|
|
||||||
- name: Download Tarball
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: binary-package-8
|
|
||||||
path: dolphinscheduler/dev
|
|
||||||
- name: Set Env
|
|
||||||
run: |
|
|
||||||
VERSION=${{ matrix.version }}
|
|
||||||
echo "DATABASE_VERSION=${VERSION//\./}" >> $GITHUB_ENV
|
|
||||||
- name: Prepare
|
|
||||||
run: |
|
|
||||||
wget https://archive.apache.org/dist/dolphinscheduler/${{ matrix.version }}/apache-dolphinscheduler-${{ matrix.version }}-bin.tar.gz -P dolphinscheduler/${{ matrix.version }}
|
|
||||||
tar -xzf dolphinscheduler/${{ matrix.version }}/apache-dolphinscheduler-${{ matrix.version }}-bin.tar.gz -C dolphinscheduler/${{ matrix.version }} --strip-components 1
|
|
||||||
tar -xzf dolphinscheduler/dev/apache-dolphinscheduler-*-bin.tar.gz -C dolphinscheduler/dev --strip-components 1
|
|
||||||
|
|
||||||
if [[ ${{ matrix.db }} == "mysql" ]]; then
|
|
||||||
MYSQL_JDBC_URL="https://repo.maven.apache.org/maven2/mysql/mysql-connector-java/8.0.16/mysql-connector-java-8.0.16.jar"
|
|
||||||
MYSQL_JDBC_JAR="mysql-connector-java-8.0.16.jar"
|
|
||||||
wget ${MYSQL_JDBC_URL} -O /tmp/${MYSQL_JDBC_JAR}
|
|
||||||
for base_dir in dolphinscheduler/dev dolphinscheduler/${{ matrix.version }}; do
|
|
||||||
if [[ $base_dir == *"dolphinscheduler/2"* ]]; then
|
|
||||||
cp /tmp/${MYSQL_JDBC_JAR} ${base_dir}/lib
|
|
||||||
else
|
|
||||||
for d in alert-server api-server master-server worker-server tools; do
|
|
||||||
cp /tmp/${MYSQL_JDBC_JAR} ${base_dir}/${d}/libs
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
docker exec -i mysql mysql -uroot -pmysql -e "create database dolphinscheduler_${{ env.DATABASE_VERSION }}";
|
|
||||||
else
|
|
||||||
docker exec -i postgres psql -U postgres -c "create database dolphinscheduler_${{ env.DATABASE_VERSION }};"
|
|
||||||
fi
|
|
||||||
- name: Check
|
|
||||||
run: |
|
|
||||||
if [[ $DATABASE_VERSION -lt 300 ]]; then
|
|
||||||
chmod +x dolphinscheduler/dev/tools/bin/upgrade-schema.sh dolphinscheduler/${{ matrix.version }}/script/create-dolphinscheduler.sh
|
|
||||||
else
|
|
||||||
chmod +x dolphinscheduler/dev/tools/bin/upgrade-schema.sh dolphinscheduler/${{ matrix.version }}/tools/bin/upgrade-schema.sh
|
|
||||||
fi
|
|
||||||
if [[ ${{ matrix.db }} == "mysql" ]]; then
|
|
||||||
export DATABASE="mysql"
|
|
||||||
export SPRING_DATASOURCE_DRIVER_CLASS_NAME="com.mysql.cj.jdbc.Driver"
|
|
||||||
export SPRING_DATASOURCE_URL="jdbc:mysql://127.0.0.1:3306/dolphinscheduler_dev?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&useSSL=false"
|
|
||||||
export SPRING_DATASOURCE_USERNAME="root"
|
|
||||||
export SPRING_DATASOURCE_PASSWORD="mysql"
|
|
||||||
bash dolphinscheduler/dev/tools/bin/upgrade-schema.sh
|
|
||||||
|
|
||||||
export SPRING_DATASOURCE_URL="jdbc:mysql://127.0.0.1:3306/dolphinscheduler_${{ env.DATABASE_VERSION }}?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&useSSL=false"
|
|
||||||
if [[ $DATABASE_VERSION -lt 300 ]]; then
|
|
||||||
bash dolphinscheduler/${{ matrix.version }}/script/create-dolphinscheduler.sh
|
|
||||||
else
|
|
||||||
bash dolphinscheduler/${{ matrix.version }}/tools/bin/upgrade-schema.sh
|
|
||||||
fi
|
|
||||||
bash dolphinscheduler/dev/tools/bin/upgrade-schema.sh
|
|
||||||
|
|
||||||
atlas_result=$(atlas schema diff \
|
|
||||||
--from "mysql://root:mysql@127.0.0.1:3306/dolphinscheduler_${{ env.DATABASE_VERSION }}" \
|
|
||||||
--to "mysql://root:mysql@127.0.0.1:3306/dolphinscheduler_dev")
|
|
||||||
if [[ ${atlas_result} != *"Schemas are synced"* ]]; then
|
|
||||||
echo "================================================================================================"
|
|
||||||
echo " !!!!! For Contributors !!!!!"
|
|
||||||
echo "================================================================================================"
|
|
||||||
echo "Database schema not sync, please add below change in the latest version of dolphinscheduler-dao/src/main/resources/sql/upgrade directory"
|
|
||||||
echo "${atlas_result}"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
export DATABASE="postgresql"
|
|
||||||
export SPRING_DATASOURCE_DRIVER_CLASS_NAME="org.postgresql.Driver"
|
|
||||||
export SPRING_DATASOURCE_URL="jdbc:postgresql://127.0.0.1:5432/dolphinscheduler_dev"
|
|
||||||
export SPRING_DATASOURCE_USERNAME="postgres"
|
|
||||||
export SPRING_DATASOURCE_PASSWORD="postgres"
|
|
||||||
bash dolphinscheduler/dev/tools/bin/upgrade-schema.sh
|
|
||||||
|
|
||||||
export SPRING_DATASOURCE_URL="jdbc:postgresql://127.0.0.1:5432/dolphinscheduler_${{ env.DATABASE_VERSION }}"
|
|
||||||
if [[ $DATABASE_VERSION -lt 300 ]]; then
|
|
||||||
bash dolphinscheduler/${{ matrix.version }}/script/create-dolphinscheduler.sh
|
|
||||||
else
|
|
||||||
bash dolphinscheduler/${{ matrix.version }}/tools/bin/upgrade-schema.sh
|
|
||||||
fi
|
|
||||||
bash dolphinscheduler/dev/tools/bin/upgrade-schema.sh
|
|
||||||
|
|
||||||
atlas_result=$(atlas schema diff \
|
|
||||||
--from "postgres://postgres:postgres@127.0.0.1:5432/dolphinscheduler_${{ env.DATABASE_VERSION }}?search_path=public&sslmode=disable" \
|
|
||||||
--to "postgres://postgres:postgres@127.0.0.1:5432/dolphinscheduler_dev?search_path=public&sslmode=disable")
|
|
||||||
if [[ ${atlas_result} != *"Schemas are synced"* ]]; then
|
|
||||||
echo "================================================================================================"
|
|
||||||
echo " !!!!! For Contributors !!!!!"
|
|
||||||
echo "================================================================================================"
|
|
||||||
echo "Database schema not sync, please add below change in the latest version in dolphinscheduler-dao/src/main/resources/sql/upgrade directory"
|
|
||||||
echo "${atlas_result}"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
result:
|
result:
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
needs: [ build, paths-filter, cluster-test, schema-check ]
|
needs: [ build, paths-filter, cluster-test ]
|
||||||
if: always()
|
if: always()
|
||||||
steps:
|
steps:
|
||||||
- name: Status
|
- name: Status
|
||||||
run: |
|
run: |
|
||||||
if [[ ${{ needs.paths-filter.outputs.not-ignore }} == 'false' && ${{ needs.paths-filter.outputs.db-schema }} == 'false' && ${{ github.event_name }} == 'pull_request' ]]; then
|
if [[ ${{ needs.paths-filter.outputs.not-ignore }} == 'false' && ${{ github.event_name }} == 'pull_request' ]]; then
|
||||||
echo "Skip Build!"
|
echo "Skip Build!"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -28,10 +28,10 @@ RUN mv /root/apache-dolphinscheduler-*-SNAPSHOT-bin /root/apache-dolphinschedule
|
||||||
ENV DOLPHINSCHEDULER_HOME /root/apache-dolphinscheduler-test-SNAPSHOT-bin
|
ENV DOLPHINSCHEDULER_HOME /root/apache-dolphinscheduler-test-SNAPSHOT-bin
|
||||||
|
|
||||||
#Setting install.sh
|
#Setting install.sh
|
||||||
COPY .github/workflows/cluster-test/mysql_with_mysql_registry/install_env.sh $DOLPHINSCHEDULER_HOME/bin/env/install_env.sh
|
COPY .github/workflows/cluster-test/mysql/install_env.sh $DOLPHINSCHEDULER_HOME/bin/env/install_env.sh
|
||||||
|
|
||||||
#Setting dolphinscheduler_env.sh
|
#Setting dolphinscheduler_env.sh
|
||||||
COPY .github/workflows/cluster-test/mysql_with_mysql_registry/dolphinscheduler_env.sh $DOLPHINSCHEDULER_HOME/bin/env/dolphinscheduler_env.sh
|
COPY .github/workflows/cluster-test/mysql/dolphinscheduler_env.sh $DOLPHINSCHEDULER_HOME/bin/env/dolphinscheduler_env.sh
|
||||||
|
|
||||||
#Download mysql jar
|
#Download mysql jar
|
||||||
ENV MYSQL_URL "https://repo.maven.apache.org/maven2/mysql/mysql-connector-java/8.0.16/mysql-connector-java-8.0.16.jar"
|
ENV MYSQL_URL "https://repo.maven.apache.org/maven2/mysql/mysql-connector-java/8.0.16/mysql-connector-java-8.0.16.jar"
|
||||||
|
|
@ -43,6 +43,6 @@ cp $DOLPHINSCHEDULER_HOME/alert-server/libs/$MYSQL_DRIVER $DOLPHINSCHEDULER_HOME
|
||||||
cp $DOLPHINSCHEDULER_HOME/alert-server/libs/$MYSQL_DRIVER $DOLPHINSCHEDULER_HOME/tools/libs/$MYSQL_DRIVER
|
cp $DOLPHINSCHEDULER_HOME/alert-server/libs/$MYSQL_DRIVER $DOLPHINSCHEDULER_HOME/tools/libs/$MYSQL_DRIVER
|
||||||
|
|
||||||
#Deploy
|
#Deploy
|
||||||
COPY .github/workflows/cluster-test/mysql_with_mysql_registry/deploy.sh /root/deploy.sh
|
COPY .github/workflows/cluster-test/mysql/deploy.sh /root/deploy.sh
|
||||||
|
|
||||||
CMD [ "/bin/bash", "/root/deploy.sh" ]
|
CMD [ "/bin/bash", "/root/deploy.sh" ]
|
||||||
|
|
@ -28,29 +28,20 @@ export SPRING_DATASOURCE_PASSWORD=123456
|
||||||
# DolphinScheduler server related configuration
|
# DolphinScheduler server related configuration
|
||||||
export SPRING_CACHE_TYPE=${SPRING_CACHE_TYPE:-none}
|
export SPRING_CACHE_TYPE=${SPRING_CACHE_TYPE:-none}
|
||||||
export SPRING_JACKSON_TIME_ZONE=${SPRING_JACKSON_TIME_ZONE:-UTC}
|
export SPRING_JACKSON_TIME_ZONE=${SPRING_JACKSON_TIME_ZONE:-UTC}
|
||||||
|
export MASTER_FETCH_COMMAND_NUM=${MASTER_FETCH_COMMAND_NUM:-10}
|
||||||
|
|
||||||
# Registry center configuration, determines the type and link of the registry center
|
# Registry center configuration, determines the type and link of the registry center
|
||||||
export REGISTRY_TYPE=${REGISTRY_TYPE:-zookeeper}
|
export REGISTRY_TYPE=${REGISTRY_TYPE:-zookeeper}
|
||||||
export REGISTRY_ZOOKEEPER_CONNECT_STRING=${REGISTRY_ZOOKEEPER_CONNECT_STRING:-zoo1:2181,zoo2:2182,zoo3:2183}
|
export REGISTRY_ZOOKEEPER_CONNECT_STRING=${REGISTRY_ZOOKEEPER_CONNECT_STRING:-zoo1:2181,zoo2:2182,zoo3:2183}
|
||||||
export REGISTRY_ZOOKEEPER_BLOCK_UNTIL_CONNECTED=30000ms
|
|
||||||
|
|
||||||
# Tasks related configurations, need to change the configuration if you use the related tasks.
|
# Tasks related configurations, need to change the configuration if you use the related tasks.
|
||||||
export HADOOP_HOME=${HADOOP_HOME:-/opt/soft/hadoop}
|
export HADOOP_HOME=${HADOOP_HOME:-/opt/soft/hadoop}
|
||||||
export HADOOP_CONF_DIR=${HADOOP_CONF_DIR:-/opt/soft/hadoop/etc/hadoop}
|
export HADOOP_CONF_DIR=${HADOOP_CONF_DIR:-/opt/soft/hadoop/etc/hadoop}
|
||||||
export SPARK_HOME=${SPARK_HOME:-/opt/soft/spark}
|
export SPARK_HOME1=${SPARK_HOME1:-/opt/soft/spark1}
|
||||||
export PYTHON_LAUNCHER=${PYTHON_LAUNCHER:-/opt/soft/python/bin/python3}
|
export SPARK_HOME2=${SPARK_HOME2:-/opt/soft/spark2}
|
||||||
|
export PYTHON_HOME=${PYTHON_HOME:-/opt/soft/python}
|
||||||
export HIVE_HOME=${HIVE_HOME:-/opt/soft/hive}
|
export HIVE_HOME=${HIVE_HOME:-/opt/soft/hive}
|
||||||
export FLINK_HOME=${FLINK_HOME:-/opt/soft/flink}
|
export FLINK_HOME=${FLINK_HOME:-/opt/soft/flink}
|
||||||
export DATAX_LAUNCHER=${DATAX_LAUNCHER:-/opt/soft/datax/bin/datax.py}
|
export DATAX_HOME=${DATAX_HOME:-/opt/soft/datax}
|
||||||
|
|
||||||
export PATH=$HADOOP_HOME/bin:$SPARK_HOME/bin:$PYTHON_LAUNCHER:$JAVA_HOME/bin:$HIVE_HOME/bin:$FLINK_HOME/bin:$DATAX_LAUNCHER:$PATH
|
export PATH=$HADOOP_HOME/bin:$SPARK_HOME1/bin:$SPARK_HOME2/bin:$PYTHON_HOME/bin:$JAVA_HOME/bin:$HIVE_HOME/bin:$FLINK_HOME/bin:$DATAX_HOME/bin:$PATH
|
||||||
|
|
||||||
export MASTER_RESERVED_MEMORY=0.01
|
|
||||||
export WORKER_RESERVED_MEMORY=0.01
|
|
||||||
|
|
||||||
# applicationId auto collection related configuration, the following configurations are unnecessary if setting appId.collect=log
|
|
||||||
#export HADOOP_CLASSPATH=`hadoop classpath`:${DOLPHINSCHEDULER_HOME}/tools/libs/*
|
|
||||||
#export SPARK_DIST_CLASSPATH=$HADOOP_CLASSPATH:$SPARK_DIST_CLASS_PATH
|
|
||||||
#export HADOOP_CLIENT_OPTS="-javaagent:${DOLPHINSCHEDULER_HOME}/tools/libs/aspectjweaver-1.9.7.jar":$HADOOP_CLIENT_OPTS
|
|
||||||
#export SPARK_SUBMIT_OPTS="-javaagent:${DOLPHINSCHEDULER_HOME}/tools/libs/aspectjweaver-1.9.7.jar":$SPARK_SUBMIT_OPTS
|
|
||||||
#export FLINK_ENV_JAVA_OPTS="-javaagent:${DOLPHINSCHEDULER_HOME}/tools/libs/aspectjweaver-1.9.7.jar":$FLINK_ENV_JAVA_OPTS
|
|
||||||
|
|
@ -24,7 +24,7 @@ WORKER_HEALTHCHECK_COMMAND="curl -I -m 10 -o /dev/null -s -w %{http_code} http:/
|
||||||
ALERT_HEALTHCHECK_COMMAND="curl -I -m 10 -o /dev/null -s -w %{http_code} http://0.0.0.0:50053/actuator/health"
|
ALERT_HEALTHCHECK_COMMAND="curl -I -m 10 -o /dev/null -s -w %{http_code} http://0.0.0.0:50053/actuator/health"
|
||||||
|
|
||||||
#Cluster start health check
|
#Cluster start health check
|
||||||
TIMEOUT=180
|
TIMEOUT=120
|
||||||
START_HEALTHCHECK_EXITCODE=0
|
START_HEALTHCHECK_EXITCODE=0
|
||||||
|
|
||||||
for ((i=1; i<=TIMEOUT; i++))
|
for ((i=1; i<=TIMEOUT; i++))
|
||||||
|
|
@ -45,28 +45,11 @@ do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $i -eq $TIMEOUT ]];then
|
if [[ $i -eq $TIMEOUT ]];then
|
||||||
if [[ $MASTER_HTTP_STATUS -ne 200 ]];then
|
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/master-server/logs/dolphinscheduler-master.log"
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/master-server/logs/dolphinscheduler-master.log"
|
echo "cluster start health check failed"
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/master-server/logs/*.out"
|
|
||||||
echo "master start health check failed"
|
|
||||||
fi
|
|
||||||
if [[ $WORKER_HTTP_STATUS -ne 200 ]]; then
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/worker-server/logs/dolphinscheduler-worker.log"
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/worker-server/logs/*.out"
|
|
||||||
echo "worker start health check failed"
|
|
||||||
fi
|
|
||||||
if [[ $API_HTTP_STATUS -ne 200 ]]; then
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/api-server/logs/dolphinscheduler-api.log"
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/api-server/logs/*.out"
|
|
||||||
echo "api start health check failed"
|
|
||||||
fi
|
|
||||||
if [[ $ALERT_HTTP_STATUS -ne 200 ]]; then
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/alert-server/logs/dolphinscheduler-alert.log"
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/alert-server/logs/*.out"
|
|
||||||
echo "alert start health check failed"
|
|
||||||
fi
|
|
||||||
exit $START_HEALTHCHECK_EXITCODE
|
exit $START_HEALTHCHECK_EXITCODE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
@ -18,16 +18,16 @@
|
||||||
set -euox pipefail
|
set -euox pipefail
|
||||||
|
|
||||||
#Start base service containers
|
#Start base service containers
|
||||||
docker-compose -f .github/workflows/cluster-test/mysql_with_mysql_registry/docker-compose-base.yaml up -d
|
docker-compose -f .github/workflows/cluster-test/mysql/docker-compose-base.yaml up -d
|
||||||
|
|
||||||
#Build ds mysql cluster image
|
#Build ds mysql cluster image
|
||||||
docker build -t jdk8:ds_mysql_cluster -f .github/workflows/cluster-test/mysql_with_mysql_registry/Dockerfile .
|
docker build -t jdk8:ds_mysql_cluster -f .github/workflows/cluster-test/mysql/Dockerfile .
|
||||||
|
|
||||||
#Start ds mysql cluster container
|
#Start ds mysql cluster container
|
||||||
docker-compose -f .github/workflows/cluster-test/mysql_with_mysql_registry/docker-compose-cluster.yaml up -d
|
docker-compose -f .github/workflows/cluster-test/mysql/docker-compose-cluster.yaml up -d
|
||||||
|
|
||||||
#Running tests
|
#Running tests
|
||||||
/bin/bash .github/workflows/cluster-test/mysql_with_mysql_registry/running_test.sh
|
/bin/bash .github/workflows/cluster-test/mysql/running_test.sh
|
||||||
|
|
||||||
#Cleanup
|
#Cleanup
|
||||||
docker rm -f $(docker ps -aq)
|
docker rm -f $(docker ps -aq)
|
||||||
|
|
@ -1,44 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
set -euox pipefail
|
|
||||||
|
|
||||||
|
|
||||||
USER=root
|
|
||||||
|
|
||||||
#Create database
|
|
||||||
mysql -hmysql -P3306 -uroot -p123456 -e "CREATE DATABASE IF NOT EXISTS dolphinscheduler DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;"
|
|
||||||
|
|
||||||
#Sudo
|
|
||||||
sed -i '$a'$USER' ALL=(ALL) NOPASSWD: NOPASSWD: ALL' /etc/sudoers
|
|
||||||
sed -i 's/Defaults requirett/#Defaults requirett/g' /etc/sudoers
|
|
||||||
|
|
||||||
#SSH
|
|
||||||
ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
|
|
||||||
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
|
|
||||||
chmod 600 ~/.ssh/authorized_keys
|
|
||||||
service ssh start
|
|
||||||
|
|
||||||
#Init schema
|
|
||||||
/bin/bash $DOLPHINSCHEDULER_HOME/tools/bin/upgrade-schema.sh
|
|
||||||
/bin/bash $DOLPHINSCHEDULER_HOME/tools/bin/initialize-jdbc-registry.sh
|
|
||||||
|
|
||||||
#Start Cluster
|
|
||||||
/bin/bash $DOLPHINSCHEDULER_HOME/bin/start-all.sh
|
|
||||||
|
|
||||||
#Keep running
|
|
||||||
tail -f /dev/null
|
|
||||||
|
|
@ -1,34 +0,0 @@
|
||||||
#
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
|
|
||||||
version: "3"
|
|
||||||
|
|
||||||
services:
|
|
||||||
mysql:
|
|
||||||
container_name: mysql
|
|
||||||
image: mysql:5.7.36
|
|
||||||
command: --default-authentication-plugin=mysql_native_password
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
MYSQL_ROOT_PASSWORD: 123456
|
|
||||||
ports:
|
|
||||||
- "3306:3306"
|
|
||||||
healthcheck:
|
|
||||||
test: mysqladmin ping -h 127.0.0.1 -u root --password=$$MYSQL_ROOT_PASSWORD
|
|
||||||
interval: 5s
|
|
||||||
timeout: 60s
|
|
||||||
retries: 120
|
|
||||||
|
|
@ -1,57 +0,0 @@
|
||||||
#
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
|
|
||||||
# JAVA_HOME, will use it to start DolphinScheduler server
|
|
||||||
export JAVA_HOME=${JAVA_HOME:-/opt/java/openjdk}
|
|
||||||
|
|
||||||
# Database related configuration, set database type, username and password
|
|
||||||
export DATABASE=${DATABASE:-mysql}
|
|
||||||
export SPRING_PROFILES_ACTIVE=${DATABASE}
|
|
||||||
export SPRING_DATASOURCE_URL="jdbc:mysql://mysql:3306/dolphinscheduler?useUnicode=true&characterEncoding=UTF-8&useSSL=false"
|
|
||||||
export SPRING_DATASOURCE_USERNAME=root
|
|
||||||
export SPRING_DATASOURCE_PASSWORD=123456
|
|
||||||
|
|
||||||
# DolphinScheduler server related configuration
|
|
||||||
export SPRING_CACHE_TYPE=${SPRING_CACHE_TYPE:-none}
|
|
||||||
export SPRING_JACKSON_TIME_ZONE=${SPRING_JACKSON_TIME_ZONE:-UTC}
|
|
||||||
|
|
||||||
# Registry center configuration, determines the type and link of the registry center
|
|
||||||
export REGISTRY_TYPE=${REGISTRY_TYPE:-jdbc}
|
|
||||||
export REGISTRY_HIKARI_CONFIG_JDBC_URL="jdbc:mysql://mysql:3306/dolphinscheduler?useUnicode=true&characterEncoding=UTF-8&useSSL=false"
|
|
||||||
export REGISTRY_HIKARI_CONFIG_USERNAME=root
|
|
||||||
export REGISTRY_HIKARI_CONFIG_PASSWORD=123456
|
|
||||||
|
|
||||||
# Tasks related configurations, need to change the configuration if you use the related tasks.
|
|
||||||
export HADOOP_HOME=${HADOOP_HOME:-/opt/soft/hadoop}
|
|
||||||
export HADOOP_CONF_DIR=${HADOOP_CONF_DIR:-/opt/soft/hadoop/etc/hadoop}
|
|
||||||
export SPARK_HOME=${SPARK_HOME:-/opt/soft/spark}
|
|
||||||
export PYTHON_LAUNCHER=${PYTHON_LAUNCHER:-/opt/soft/python/bin/python3}
|
|
||||||
export HIVE_HOME=${HIVE_HOME:-/opt/soft/hive}
|
|
||||||
export FLINK_HOME=${FLINK_HOME:-/opt/soft/flink}
|
|
||||||
export DATAX_LAUNCHER=${DATAX_LAUNCHER:-/opt/soft/datax/bin/datax.py}
|
|
||||||
|
|
||||||
export PATH=$HADOOP_HOME/bin:$SPARK_HOME/bin:$PYTHON_LAUNCHER:$JAVA_HOME/bin:$HIVE_HOME/bin:$FLINK_HOME/bin:$DATAX_LAUNCHER:$PATH
|
|
||||||
|
|
||||||
export MASTER_RESERVED_MEMORY=0.01
|
|
||||||
export WORKER_RESERVED_MEMORY=0.01
|
|
||||||
|
|
||||||
# applicationId auto collection related configuration, the following configurations are unnecessary if setting appId.collect=log
|
|
||||||
#export HADOOP_CLASSPATH=`hadoop classpath`:${DOLPHINSCHEDULER_HOME}/tools/libs/*
|
|
||||||
#export SPARK_DIST_CLASSPATH=$HADOOP_CLASSPATH:$SPARK_DIST_CLASS_PATH
|
|
||||||
#export HADOOP_CLIENT_OPTS="-javaagent:${DOLPHINSCHEDULER_HOME}/tools/libs/aspectjweaver-1.9.7.jar":$HADOOP_CLIENT_OPTS
|
|
||||||
#export SPARK_SUBMIT_OPTS="-javaagent:${DOLPHINSCHEDULER_HOME}/tools/libs/aspectjweaver-1.9.7.jar":$SPARK_SUBMIT_OPTS
|
|
||||||
#export FLINK_ENV_JAVA_OPTS="-javaagent:${DOLPHINSCHEDULER_HOME}/tools/libs/aspectjweaver-1.9.7.jar":$FLINK_ENV_JAVA_OPTS
|
|
||||||
|
|
@ -1,58 +0,0 @@
|
||||||
#
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
|
|
||||||
# ---------------------------------------------------------
|
|
||||||
# INSTALL MACHINE
|
|
||||||
# ---------------------------------------------------------
|
|
||||||
# A comma separated list of machine hostname or IP would be installed DolphinScheduler,
|
|
||||||
# including master, worker, api, alert. If you want to deploy in pseudo-distributed
|
|
||||||
# mode, just write a pseudo-distributed hostname
|
|
||||||
# Example for hostnames: ips="ds1,ds2,ds3,ds4,ds5", Example for IPs: ips="192.168.8.1,192.168.8.2,192.168.8.3,192.168.8.4,192.168.8.5"
|
|
||||||
ips=${ips:-"localhost"}
|
|
||||||
|
|
||||||
# Port of SSH protocol, default value is 22. For now we only support same port in all `ips` machine
|
|
||||||
# modify it if you use different ssh port
|
|
||||||
sshPort=${sshPort:-"22"}
|
|
||||||
|
|
||||||
# A comma separated list of machine hostname or IP would be installed Master server, it
|
|
||||||
# must be a subset of configuration `ips`.
|
|
||||||
# Example for hostnames: masters="ds1,ds2", Example for IPs: masters="192.168.8.1,192.168.8.2"
|
|
||||||
masters=${masters:-"localhost"}
|
|
||||||
|
|
||||||
# A comma separated list of machine <hostname>:<workerGroup> or <IP>:<workerGroup>.All hostname or IP must be a
|
|
||||||
# subset of configuration `ips`, And workerGroup have default value as `default`, but we recommend you declare behind the hosts
|
|
||||||
# Example for hostnames: workers="ds1:default,ds2:default,ds3:default", Example for IPs: workers="192.168.8.1:default,192.168.8.2:default,192.168.8.3:default"
|
|
||||||
workers=${workers:-"localhost:default"}
|
|
||||||
|
|
||||||
# A comma separated list of machine hostname or IP would be installed Alert server, it
|
|
||||||
# must be a subset of configuration `ips`.
|
|
||||||
# Example for hostname: alertServer="ds3", Example for IP: alertServer="192.168.8.3"
|
|
||||||
alertServer=${alertServer:-"localhost"}
|
|
||||||
|
|
||||||
# A comma separated list of machine hostname or IP would be installed API server, it
|
|
||||||
# must be a subset of configuration `ips`.
|
|
||||||
# Example for hostname: apiServers="ds1", Example for IP: apiServers="192.168.8.1"
|
|
||||||
apiServers=${apiServers:-"localhost"}
|
|
||||||
|
|
||||||
# The directory to install DolphinScheduler for all machine we config above. It will automatically be created by `install.sh` script if not exists.
|
|
||||||
# Do not set this configuration same as the current path (pwd)
|
|
||||||
installPath=${installPath:-"/root/apache-dolphinscheduler-*-SNAPSHOT-bin"}
|
|
||||||
|
|
||||||
# The user to deploy DolphinScheduler for all machine we config above. For now user must create by yourself before running `install.sh`
|
|
||||||
# script. The user needs to have sudo privileges and permissions to operate hdfs. If hdfs is enabled than the root directory needs
|
|
||||||
# to be created by this user
|
|
||||||
deployUser=${deployUser:-"dolphinscheduler"}
|
|
||||||
|
|
@ -1,48 +0,0 @@
|
||||||
#
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
|
|
||||||
FROM eclipse-temurin:8-jre
|
|
||||||
|
|
||||||
RUN apt update ; \
|
|
||||||
apt install -y wget default-mysql-client sudo openssh-server netcat-traditional ;
|
|
||||||
|
|
||||||
COPY ./apache-dolphinscheduler-*-SNAPSHOT-bin.tar.gz /root
|
|
||||||
RUN tar -zxvf /root/apache-dolphinscheduler-*-SNAPSHOT-bin.tar.gz -C ~
|
|
||||||
|
|
||||||
RUN mv /root/apache-dolphinscheduler-*-SNAPSHOT-bin /root/apache-dolphinscheduler-test-SNAPSHOT-bin
|
|
||||||
|
|
||||||
ENV DOLPHINSCHEDULER_HOME /root/apache-dolphinscheduler-test-SNAPSHOT-bin
|
|
||||||
|
|
||||||
#Setting install.sh
|
|
||||||
COPY .github/workflows/cluster-test/mysql_with_zookeeper_registry/install_env.sh $DOLPHINSCHEDULER_HOME/bin/env/install_env.sh
|
|
||||||
|
|
||||||
#Setting dolphinscheduler_env.sh
|
|
||||||
COPY .github/workflows/cluster-test/mysql_with_zookeeper_registry/dolphinscheduler_env.sh $DOLPHINSCHEDULER_HOME/bin/env/dolphinscheduler_env.sh
|
|
||||||
|
|
||||||
#Download mysql jar
|
|
||||||
ENV MYSQL_URL "https://repo.maven.apache.org/maven2/mysql/mysql-connector-java/8.0.16/mysql-connector-java-8.0.16.jar"
|
|
||||||
ENV MYSQL_DRIVER "mysql-connector-java-8.0.16.jar"
|
|
||||||
RUN wget -O $DOLPHINSCHEDULER_HOME/alert-server/libs/$MYSQL_DRIVER $MYSQL_URL ; \
|
|
||||||
cp $DOLPHINSCHEDULER_HOME/alert-server/libs/$MYSQL_DRIVER $DOLPHINSCHEDULER_HOME/api-server/libs/$MYSQL_DRIVER ; \
|
|
||||||
cp $DOLPHINSCHEDULER_HOME/alert-server/libs/$MYSQL_DRIVER $DOLPHINSCHEDULER_HOME/master-server/libs/$MYSQL_DRIVER ; \
|
|
||||||
cp $DOLPHINSCHEDULER_HOME/alert-server/libs/$MYSQL_DRIVER $DOLPHINSCHEDULER_HOME/worker-server/libs/$MYSQL_DRIVER ; \
|
|
||||||
cp $DOLPHINSCHEDULER_HOME/alert-server/libs/$MYSQL_DRIVER $DOLPHINSCHEDULER_HOME/tools/libs/$MYSQL_DRIVER
|
|
||||||
|
|
||||||
#Deploy
|
|
||||||
COPY .github/workflows/cluster-test/mysql_with_zookeeper_registry/deploy.sh /root/deploy.sh
|
|
||||||
|
|
||||||
CMD [ "/bin/bash", "/root/deploy.sh" ]
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
#
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
|
|
||||||
version: "3"
|
|
||||||
|
|
||||||
services:
|
|
||||||
ds:
|
|
||||||
container_name: ds
|
|
||||||
image: jdk8:ds_mysql_cluster
|
|
||||||
restart: always
|
|
||||||
ports:
|
|
||||||
- "12345:12345"
|
|
||||||
- "5679:5679"
|
|
||||||
- "1235:1235"
|
|
||||||
- "50053:50053"
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
set -euox pipefail
|
|
||||||
|
|
||||||
#Start base service containers
|
|
||||||
docker-compose -f .github/workflows/cluster-test/mysql_with_zookeeper_registry/docker-compose-base.yaml up -d
|
|
||||||
|
|
||||||
#Build ds mysql cluster image
|
|
||||||
docker build -t jdk8:ds_mysql_cluster -f .github/workflows/cluster-test/mysql_with_zookeeper_registry/Dockerfile .
|
|
||||||
|
|
||||||
#Start ds mysql cluster container
|
|
||||||
docker-compose -f .github/workflows/cluster-test/mysql_with_zookeeper_registry/docker-compose-cluster.yaml up -d
|
|
||||||
|
|
||||||
#Running tests
|
|
||||||
/bin/bash .github/workflows/cluster-test/mysql_with_zookeeper_registry/running_test.sh
|
|
||||||
|
|
||||||
#Cleanup
|
|
||||||
docker rm -f $(docker ps -aq)
|
|
||||||
|
|
@ -28,12 +28,12 @@ RUN mv /root/apache-dolphinscheduler-*-SNAPSHOT-bin /root/apache-dolphinschedule
|
||||||
ENV DOLPHINSCHEDULER_HOME /root/apache-dolphinscheduler-test-SNAPSHOT-bin
|
ENV DOLPHINSCHEDULER_HOME /root/apache-dolphinscheduler-test-SNAPSHOT-bin
|
||||||
|
|
||||||
#Setting install.sh
|
#Setting install.sh
|
||||||
COPY .github/workflows/cluster-test/postgresql_with_zookeeper_registry/install_env.sh $DOLPHINSCHEDULER_HOME/bin/env/install_env.sh
|
COPY .github/workflows/cluster-test/postgresql/install_env.sh $DOLPHINSCHEDULER_HOME/bin/env/install_env.sh
|
||||||
|
|
||||||
#Setting dolphinscheduler_env.sh
|
#Setting dolphinscheduler_env.sh
|
||||||
COPY .github/workflows/cluster-test/postgresql_with_zookeeper_registry/dolphinscheduler_env.sh $DOLPHINSCHEDULER_HOME/bin/env/dolphinscheduler_env.sh
|
COPY .github/workflows/cluster-test/postgresql/dolphinscheduler_env.sh $DOLPHINSCHEDULER_HOME/bin/env/dolphinscheduler_env.sh
|
||||||
|
|
||||||
#Deploy
|
#Deploy
|
||||||
COPY .github/workflows/cluster-test/postgresql_with_zookeeper_registry/deploy.sh /root/deploy.sh
|
COPY .github/workflows/cluster-test/postgresql/deploy.sh /root/deploy.sh
|
||||||
|
|
||||||
CMD [ "/bin/bash", "/root/deploy.sh" ]
|
CMD [ "/bin/bash", "/root/deploy.sh" ]
|
||||||
|
|
@ -28,29 +28,20 @@ export SPRING_DATASOURCE_PASSWORD=postgres
|
||||||
# DolphinScheduler server related configuration
|
# DolphinScheduler server related configuration
|
||||||
export SPRING_CACHE_TYPE=${SPRING_CACHE_TYPE:-none}
|
export SPRING_CACHE_TYPE=${SPRING_CACHE_TYPE:-none}
|
||||||
export SPRING_JACKSON_TIME_ZONE=${SPRING_JACKSON_TIME_ZONE:-UTC}
|
export SPRING_JACKSON_TIME_ZONE=${SPRING_JACKSON_TIME_ZONE:-UTC}
|
||||||
|
export MASTER_FETCH_COMMAND_NUM=${MASTER_FETCH_COMMAND_NUM:-10}
|
||||||
|
|
||||||
# Registry center configuration, determines the type and link of the registry center
|
# Registry center configuration, determines the type and link of the registry center
|
||||||
export REGISTRY_TYPE=${REGISTRY_TYPE:-zookeeper}
|
export REGISTRY_TYPE=${REGISTRY_TYPE:-zookeeper}
|
||||||
export REGISTRY_ZOOKEEPER_CONNECT_STRING=${REGISTRY_ZOOKEEPER_CONNECT_STRING:-zoo1:2181,zoo2:2182,zoo3:2183}
|
export REGISTRY_ZOOKEEPER_CONNECT_STRING=${REGISTRY_ZOOKEEPER_CONNECT_STRING:-zoo1:2181,zoo2:2182,zoo3:2183}
|
||||||
export REGISTRY_ZOOKEEPER_BLOCK_UNTIL_CONNECTED=30000ms
|
|
||||||
|
|
||||||
# Tasks related configurations, need to change the configuration if you use the related tasks.
|
# Tasks related configurations, need to change the configuration if you use the related tasks.
|
||||||
export HADOOP_HOME=${HADOOP_HOME:-/opt/soft/hadoop}
|
export HADOOP_HOME=${HADOOP_HOME:-/opt/soft/hadoop}
|
||||||
export HADOOP_CONF_DIR=${HADOOP_CONF_DIR:-/opt/soft/hadoop/etc/hadoop}
|
export HADOOP_CONF_DIR=${HADOOP_CONF_DIR:-/opt/soft/hadoop/etc/hadoop}
|
||||||
export SPARK_HOME=${SPARK_HOME:-/opt/soft/spark}
|
export SPARK_HOME1=${SPARK_HOME1:-/opt/soft/spark1}
|
||||||
export PYTHON_LAUNCHER=${PYTHON_LAUNCHER:-/opt/soft/python/bin/python3}
|
export SPARK_HOME2=${SPARK_HOME2:-/opt/soft/spark2}
|
||||||
|
export PYTHON_HOME=${PYTHON_HOME:-/opt/soft/python}
|
||||||
export HIVE_HOME=${HIVE_HOME:-/opt/soft/hive}
|
export HIVE_HOME=${HIVE_HOME:-/opt/soft/hive}
|
||||||
export FLINK_HOME=${FLINK_HOME:-/opt/soft/flink}
|
export FLINK_HOME=${FLINK_HOME:-/opt/soft/flink}
|
||||||
export DATAX_LAUNCHER=${DATAX_LAUNCHER:-/opt/soft/datax/bin/datax.py}
|
export DATAX_HOME=${DATAX_HOME:-/opt/soft/datax}
|
||||||
|
|
||||||
export PATH=$HADOOP_HOME/bin:$SPARK_HOME/bin:$PYTHON_LAUNCHER:$JAVA_HOME/bin:$HIVE_HOME/bin:$FLINK_HOME/bin:$DATAX_LAUNCHER:$PATH
|
export PATH=$HADOOP_HOME/bin:$SPARK_HOME1/bin:$SPARK_HOME2/bin:$PYTHON_HOME/bin:$JAVA_HOME/bin:$HIVE_HOME/bin:$FLINK_HOME/bin:$DATAX_HOME/bin:$PATH
|
||||||
|
|
||||||
export MASTER_RESERVED_MEMORY=0.01
|
|
||||||
export WORKER_RESERVED_MEMORY=0.01
|
|
||||||
|
|
||||||
# applicationId auto collection related configuration, the following configurations are unnecessary if setting appId.collect=log
|
|
||||||
#export HADOOP_CLASSPATH=`hadoop classpath`:${DOLPHINSCHEDULER_HOME}/tools/libs/*
|
|
||||||
#export SPARK_DIST_CLASSPATH=$HADOOP_CLASSPATH:$SPARK_DIST_CLASS_PATH
|
|
||||||
#export HADOOP_CLIENT_OPTS="-javaagent:${DOLPHINSCHEDULER_HOME}/tools/libs/aspectjweaver-1.9.7.jar":$HADOOP_CLIENT_OPTS
|
|
||||||
#export SPARK_SUBMIT_OPTS="-javaagent:${DOLPHINSCHEDULER_HOME}/tools/libs/aspectjweaver-1.9.7.jar":$SPARK_SUBMIT_OPTS
|
|
||||||
#export FLINK_ENV_JAVA_OPTS="-javaagent:${DOLPHINSCHEDULER_HOME}/tools/libs/aspectjweaver-1.9.7.jar":$FLINK_ENV_JAVA_OPTS
|
|
||||||
|
|
@ -24,7 +24,7 @@ WORKER_HEALTHCHECK_COMMAND="curl -I -m 10 -o /dev/null -s -w %{http_code} http:/
|
||||||
ALERT_HEALTHCHECK_COMMAND="curl -I -m 10 -o /dev/null -s -w %{http_code} http://0.0.0.0:50053/actuator/health"
|
ALERT_HEALTHCHECK_COMMAND="curl -I -m 10 -o /dev/null -s -w %{http_code} http://0.0.0.0:50053/actuator/health"
|
||||||
|
|
||||||
#Cluster start health check
|
#Cluster start health check
|
||||||
TIMEOUT=180
|
TIMEOUT=120
|
||||||
START_HEALTHCHECK_EXITCODE=0
|
START_HEALTHCHECK_EXITCODE=0
|
||||||
|
|
||||||
for ((i=1; i<=TIMEOUT; i++))
|
for ((i=1; i<=TIMEOUT; i++))
|
||||||
|
|
@ -45,28 +45,11 @@ do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $i -eq $TIMEOUT ]];then
|
if [[ $i -eq $TIMEOUT ]];then
|
||||||
if [[ $MASTER_HTTP_STATUS -ne 200 ]];then
|
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/master-server/logs/dolphinscheduler-master.log"
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/master-server/logs/dolphinscheduler-master.log"
|
echo "cluster start health check failed"
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/master-server/logs/*.out"
|
|
||||||
echo "master start health check failed"
|
|
||||||
fi
|
|
||||||
if [[ $WORKER_HTTP_STATUS -ne 200 ]]; then
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/worker-server/logs/dolphinscheduler-worker.log"
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/worker-server/logs/*.out"
|
|
||||||
echo "worker start health check failed"
|
|
||||||
fi
|
|
||||||
if [[ $API_HTTP_STATUS -ne 200 ]]; then
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/api-server/logs/dolphinscheduler-api.log"
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/api-server/logs/*.out"
|
|
||||||
echo "api start health check failed"
|
|
||||||
fi
|
|
||||||
if [[ $ALERT_HTTP_STATUS -ne 200 ]]; then
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/alert-server/logs/dolphinscheduler-alert.log"
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/alert-server/logs/*.out"
|
|
||||||
echo "alert start health check failed"
|
|
||||||
fi
|
|
||||||
exit $START_HEALTHCHECK_EXITCODE
|
exit $START_HEALTHCHECK_EXITCODE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
@ -18,16 +18,16 @@
|
||||||
set -euox pipefail
|
set -euox pipefail
|
||||||
|
|
||||||
#Start base service containers
|
#Start base service containers
|
||||||
docker-compose -f .github/workflows/cluster-test/postgresql_with_zookeeper_registry/docker-compose-base.yaml up -d
|
docker-compose -f .github/workflows/cluster-test/postgresql/docker-compose-base.yaml up -d
|
||||||
|
|
||||||
#Build ds postgresql cluster image
|
#Build ds postgresql cluster image
|
||||||
docker build -t jdk8:ds_postgresql_cluster -f .github/workflows/cluster-test/postgresql_with_zookeeper_registry/Dockerfile .
|
docker build -t jdk8:ds_postgresql_cluster -f .github/workflows/cluster-test/postgresql/Dockerfile .
|
||||||
|
|
||||||
#Start ds postgresql cluster container
|
#Start ds postgresql cluster container
|
||||||
docker-compose -f .github/workflows/cluster-test/postgresql_with_zookeeper_registry/docker-compose-cluster.yaml up -d
|
docker-compose -f .github/workflows/cluster-test/postgresql/docker-compose-cluster.yaml up -d
|
||||||
|
|
||||||
#Running tests
|
#Running tests
|
||||||
/bin/bash .github/workflows/cluster-test/postgresql_with_zookeeper_registry/running_test.sh
|
/bin/bash .github/workflows/cluster-test/postgresql/running_test.sh
|
||||||
|
|
||||||
#Cleanup
|
#Cleanup
|
||||||
docker rm -f $(docker ps -aq)
|
docker rm -f $(docker ps -aq)
|
||||||
|
|
@ -1,39 +0,0 @@
|
||||||
#
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
|
|
||||||
FROM eclipse-temurin:8-jre
|
|
||||||
|
|
||||||
RUN apt update ; \
|
|
||||||
apt install -y wget sudo openssh-server netcat-traditional ;
|
|
||||||
|
|
||||||
COPY ./apache-dolphinscheduler-*-SNAPSHOT-bin.tar.gz /root
|
|
||||||
RUN tar -zxvf /root/apache-dolphinscheduler-*-SNAPSHOT-bin.tar.gz -C ~
|
|
||||||
|
|
||||||
RUN mv /root/apache-dolphinscheduler-*-SNAPSHOT-bin /root/apache-dolphinscheduler-test-SNAPSHOT-bin
|
|
||||||
|
|
||||||
ENV DOLPHINSCHEDULER_HOME /root/apache-dolphinscheduler-test-SNAPSHOT-bin
|
|
||||||
|
|
||||||
#Setting install.sh
|
|
||||||
COPY .github/workflows/cluster-test/postgresql_with_postgresql_registry/install_env.sh $DOLPHINSCHEDULER_HOME/bin/env/install_env.sh
|
|
||||||
|
|
||||||
#Setting dolphinscheduler_env.sh
|
|
||||||
COPY .github/workflows/cluster-test/postgresql_with_postgresql_registry/dolphinscheduler_env.sh $DOLPHINSCHEDULER_HOME/bin/env/dolphinscheduler_env.sh
|
|
||||||
|
|
||||||
#Deploy
|
|
||||||
COPY .github/workflows/cluster-test/postgresql_with_postgresql_registry/deploy.sh /root/deploy.sh
|
|
||||||
|
|
||||||
CMD [ "/bin/bash", "/root/deploy.sh" ]
|
|
||||||
|
|
@ -1,41 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
set -euox pipefail
|
|
||||||
|
|
||||||
|
|
||||||
USER=root
|
|
||||||
|
|
||||||
#Sudo
|
|
||||||
sed -i '$a'$USER' ALL=(ALL) NOPASSWD: NOPASSWD: ALL' /etc/sudoers
|
|
||||||
sed -i 's/Defaults requirett/#Defaults requirett/g' /etc/sudoers
|
|
||||||
|
|
||||||
#SSH
|
|
||||||
ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
|
|
||||||
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
|
|
||||||
chmod 600 ~/.ssh/authorized_keys
|
|
||||||
service ssh start
|
|
||||||
|
|
||||||
#Init schema
|
|
||||||
/bin/bash $DOLPHINSCHEDULER_HOME/tools/bin/upgrade-schema.sh
|
|
||||||
/bin/bash $DOLPHINSCHEDULER_HOME/tools/bin/initialize-jdbc-registry.sh
|
|
||||||
|
|
||||||
#Start Cluster
|
|
||||||
/bin/bash $DOLPHINSCHEDULER_HOME/bin/start-all.sh
|
|
||||||
|
|
||||||
#Keep running
|
|
||||||
tail -f /dev/null
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
||||||
#
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
|
|
||||||
version: "3"
|
|
||||||
|
|
||||||
services:
|
|
||||||
postgres:
|
|
||||||
container_name: postgres
|
|
||||||
image: postgres:14.1
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
POSTGRES_PASSWORD: postgres
|
|
||||||
POSTGRES_DB: dolphinscheduler
|
|
||||||
ports:
|
|
||||||
- "5432:5432"
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
||||||
interval: 5s
|
|
||||||
timeout: 60s
|
|
||||||
retries: 120
|
|
||||||
|
|
||||||
|
|
@ -1,57 +0,0 @@
|
||||||
#
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
|
|
||||||
# JAVA_HOME, will use it to start DolphinScheduler server
|
|
||||||
export JAVA_HOME=${JAVA_HOME:-/opt/java/openjdk}
|
|
||||||
|
|
||||||
# Database related configuration, set database type, username and password
|
|
||||||
export DATABASE=${DATABASE:-postgresql}
|
|
||||||
export SPRING_PROFILES_ACTIVE=${DATABASE}
|
|
||||||
export SPRING_DATASOURCE_URL="jdbc:postgresql://postgres:5432/dolphinscheduler"
|
|
||||||
export SPRING_DATASOURCE_USERNAME=postgres
|
|
||||||
export SPRING_DATASOURCE_PASSWORD=postgres
|
|
||||||
|
|
||||||
# DolphinScheduler server related configuration
|
|
||||||
export SPRING_CACHE_TYPE=${SPRING_CACHE_TYPE:-none}
|
|
||||||
export SPRING_JACKSON_TIME_ZONE=${SPRING_JACKSON_TIME_ZONE:-UTC}
|
|
||||||
|
|
||||||
# Registry center configuration, determines the type and link of the registry center
|
|
||||||
export REGISTRY_TYPE=jdbc
|
|
||||||
export REGISTRY_HIKARI_CONFIG_JDBC_URL="jdbc:postgresql://postgres:5432/dolphinscheduler"
|
|
||||||
export REGISTRY_HIKARI_CONFIG_USERNAME=postgres
|
|
||||||
export REGISTRY_HIKARI_CONFIG_PASSWORD=postgres
|
|
||||||
|
|
||||||
# Tasks related configurations, need to change the configuration if you use the related tasks.
|
|
||||||
export HADOOP_HOME=${HADOOP_HOME:-/opt/soft/hadoop}
|
|
||||||
export HADOOP_CONF_DIR=${HADOOP_CONF_DIR:-/opt/soft/hadoop/etc/hadoop}
|
|
||||||
export SPARK_HOME=${SPARK_HOME:-/opt/soft/spark}
|
|
||||||
export PYTHON_LAUNCHER=${PYTHON_LAUNCHER:-/opt/soft/python/bin/python3}
|
|
||||||
export HIVE_HOME=${HIVE_HOME:-/opt/soft/hive}
|
|
||||||
export FLINK_HOME=${FLINK_HOME:-/opt/soft/flink}
|
|
||||||
export DATAX_LAUNCHER=${DATAX_LAUNCHER:-/opt/soft/datax/bin/datax.py}
|
|
||||||
|
|
||||||
export PATH=$HADOOP_HOME/bin:$SPARK_HOME/bin:$PYTHON_LAUNCHER:$JAVA_HOME/bin:$HIVE_HOME/bin:$FLINK_HOME/bin:$DATAX_LAUNCHER:$PATH
|
|
||||||
|
|
||||||
export MASTER_RESERVED_MEMORY=0.01
|
|
||||||
export WORKER_RESERVED_MEMORY=0.01
|
|
||||||
|
|
||||||
# applicationId auto collection related configuration, the following configurations are unnecessary if setting appId.collect=log
|
|
||||||
#export HADOOP_CLASSPATH=`hadoop classpath`:${DOLPHINSCHEDULER_HOME}/tools/libs/*
|
|
||||||
#export SPARK_DIST_CLASSPATH=$HADOOP_CLASSPATH:$SPARK_DIST_CLASS_PATH
|
|
||||||
#export HADOOP_CLIENT_OPTS="-javaagent:${DOLPHINSCHEDULER_HOME}/tools/libs/aspectjweaver-1.9.7.jar":$HADOOP_CLIENT_OPTS
|
|
||||||
#export SPARK_SUBMIT_OPTS="-javaagent:${DOLPHINSCHEDULER_HOME}/tools/libs/aspectjweaver-1.9.7.jar":$SPARK_SUBMIT_OPTS
|
|
||||||
#export FLINK_ENV_JAVA_OPTS="-javaagent:${DOLPHINSCHEDULER_HOME}/tools/libs/aspectjweaver-1.9.7.jar":$FLINK_ENV_JAVA_OPTS
|
|
||||||
|
|
@ -1,109 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
set -x
|
|
||||||
|
|
||||||
|
|
||||||
API_HEALTHCHECK_COMMAND="curl -I -m 10 -o /dev/null -s -w %{http_code} http://0.0.0.0:12345/dolphinscheduler/actuator/health"
|
|
||||||
MASTER_HEALTHCHECK_COMMAND="curl -I -m 10 -o /dev/null -s -w %{http_code} http://0.0.0.0:5679/actuator/health"
|
|
||||||
WORKER_HEALTHCHECK_COMMAND="curl -I -m 10 -o /dev/null -s -w %{http_code} http://0.0.0.0:1235/actuator/health"
|
|
||||||
ALERT_HEALTHCHECK_COMMAND="curl -I -m 10 -o /dev/null -s -w %{http_code} http://0.0.0.0:50053/actuator/health"
|
|
||||||
|
|
||||||
#Cluster start health check
|
|
||||||
TIMEOUT=180
|
|
||||||
START_HEALTHCHECK_EXITCODE=0
|
|
||||||
|
|
||||||
for ((i=1; i<=TIMEOUT; i++))
|
|
||||||
do
|
|
||||||
MASTER_HTTP_STATUS=$(eval "$MASTER_HEALTHCHECK_COMMAND")
|
|
||||||
WORKER_HTTP_STATUS=$(eval "$WORKER_HEALTHCHECK_COMMAND")
|
|
||||||
API_HTTP_STATUS=$(eval "$API_HEALTHCHECK_COMMAND")
|
|
||||||
ALERT_HTTP_STATUS=$(eval "$ALERT_HEALTHCHECK_COMMAND")
|
|
||||||
if [[ $MASTER_HTTP_STATUS -eq 200 && $WORKER_HTTP_STATUS -eq 200 && $API_HTTP_STATUS -eq 200 && $ALERT_HTTP_STATUS -eq 200 ]];then
|
|
||||||
START_HEALTHCHECK_EXITCODE=0
|
|
||||||
else
|
|
||||||
START_HEALTHCHECK_EXITCODE=2
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $START_HEALTHCHECK_EXITCODE -eq 0 ]];then
|
|
||||||
echo "cluster start health check success"
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $i -eq $TIMEOUT ]];then
|
|
||||||
if [[ $MASTER_HTTP_STATUS -ne 200 ]];then
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/master-server/logs/dolphinscheduler-master.log"
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/master-server/logs/*.out"
|
|
||||||
echo "master start health check failed"
|
|
||||||
fi
|
|
||||||
if [[ $WORKER_HTTP_STATUS -ne 200 ]]; then
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/worker-server/logs/dolphinscheduler-worker.log"
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/worker-server/logs/*.out"
|
|
||||||
echo "worker start health check failed"
|
|
||||||
fi
|
|
||||||
if [[ $API_HTTP_STATUS -ne 200 ]]; then
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/api-server/logs/dolphinscheduler-api.log"
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/api-server/logs/*.out"
|
|
||||||
echo "api start health check failed"
|
|
||||||
fi
|
|
||||||
if [[ $ALERT_HTTP_STATUS -ne 200 ]]; then
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/alert-server/logs/dolphinscheduler-alert.log"
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/alert-server/logs/*.out"
|
|
||||||
echo "alert start health check failed"
|
|
||||||
fi
|
|
||||||
exit $START_HEALTHCHECK_EXITCODE
|
|
||||||
fi
|
|
||||||
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
|
|
||||||
#Stop Cluster
|
|
||||||
docker exec -u root ds bash -c "/root/apache-dolphinscheduler-*-SNAPSHOT-bin/bin/stop-all.sh"
|
|
||||||
|
|
||||||
#Cluster stop health check
|
|
||||||
sleep 5
|
|
||||||
MASTER_HTTP_STATUS=$(eval "$MASTER_HEALTHCHECK_COMMAND")
|
|
||||||
if [[ $MASTER_HTTP_STATUS -ne 200 ]];then
|
|
||||||
echo "master stop health check success"
|
|
||||||
else
|
|
||||||
echo "master stop health check failed"
|
|
||||||
exit 3
|
|
||||||
fi
|
|
||||||
|
|
||||||
WORKER_HTTP_STATUS=$(eval "$WORKER_HEALTHCHECK_COMMAND")
|
|
||||||
if [[ $WORKER_HTTP_STATUS -ne 200 ]];then
|
|
||||||
echo "worker stop health check success"
|
|
||||||
else
|
|
||||||
echo "worker stop health check failed"
|
|
||||||
exit 3
|
|
||||||
fi
|
|
||||||
|
|
||||||
API_HTTP_STATUS=$(eval "$API_HEALTHCHECK_COMMAND")
|
|
||||||
if [[ $API_HTTP_STATUS -ne 200 ]];then
|
|
||||||
echo "api stop health check success"
|
|
||||||
else
|
|
||||||
echo "api stop health check failed"
|
|
||||||
exit 3
|
|
||||||
fi
|
|
||||||
|
|
||||||
ALERT_HTTP_STATUS=$(eval "$ALERT_HEALTHCHECK_COMMAND")
|
|
||||||
if [[ $ALERT_HTTP_STATUS -ne 200 ]];then
|
|
||||||
echo "alert stop health check success"
|
|
||||||
else
|
|
||||||
echo "alert stop health check failed"
|
|
||||||
exit 3
|
|
||||||
fi
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
set -euox pipefail
|
|
||||||
|
|
||||||
#Start base service containers
|
|
||||||
docker-compose -f .github/workflows/cluster-test/postgresql_with_postgresql_registry/docker-compose-base.yaml up -d
|
|
||||||
|
|
||||||
#Build ds postgresql cluster image
|
|
||||||
docker build -t jdk8:ds_postgresql_cluster -f .github/workflows/cluster-test/postgresql_with_postgresql_registry/Dockerfile .
|
|
||||||
|
|
||||||
#Start ds postgresql cluster container
|
|
||||||
docker-compose -f .github/workflows/cluster-test/postgresql_with_postgresql_registry/docker-compose-cluster.yaml up -d
|
|
||||||
|
|
||||||
#Running tests
|
|
||||||
/bin/bash .github/workflows/cluster-test/postgresql_with_postgresql_registry/running_test.sh
|
|
||||||
|
|
||||||
#Cleanup
|
|
||||||
docker rm -f $(docker ps -aq)
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
#
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
|
|
||||||
version: "3"
|
|
||||||
|
|
||||||
services:
|
|
||||||
ds:
|
|
||||||
container_name: ds
|
|
||||||
image: jdk8:ds_postgresql_cluster
|
|
||||||
restart: always
|
|
||||||
ports:
|
|
||||||
- "12345:12345"
|
|
||||||
- "5679:5679"
|
|
||||||
- "1235:1235"
|
|
||||||
- "50053:50053"
|
|
||||||
|
|
@ -1,109 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
set -x
|
|
||||||
|
|
||||||
|
|
||||||
API_HEALTHCHECK_COMMAND="curl -I -m 10 -o /dev/null -s -w %{http_code} http://0.0.0.0:12345/dolphinscheduler/actuator/health"
|
|
||||||
MASTER_HEALTHCHECK_COMMAND="curl -I -m 10 -o /dev/null -s -w %{http_code} http://0.0.0.0:5679/actuator/health"
|
|
||||||
WORKER_HEALTHCHECK_COMMAND="curl -I -m 10 -o /dev/null -s -w %{http_code} http://0.0.0.0:1235/actuator/health"
|
|
||||||
ALERT_HEALTHCHECK_COMMAND="curl -I -m 10 -o /dev/null -s -w %{http_code} http://0.0.0.0:50053/actuator/health"
|
|
||||||
|
|
||||||
#Cluster start health check
|
|
||||||
TIMEOUT=180
|
|
||||||
START_HEALTHCHECK_EXITCODE=0
|
|
||||||
|
|
||||||
for ((i=1; i<=TIMEOUT; i++))
|
|
||||||
do
|
|
||||||
MASTER_HTTP_STATUS=$(eval "$MASTER_HEALTHCHECK_COMMAND")
|
|
||||||
WORKER_HTTP_STATUS=$(eval "$WORKER_HEALTHCHECK_COMMAND")
|
|
||||||
API_HTTP_STATUS=$(eval "$API_HEALTHCHECK_COMMAND")
|
|
||||||
ALERT_HTTP_STATUS=$(eval "$ALERT_HEALTHCHECK_COMMAND")
|
|
||||||
if [[ $MASTER_HTTP_STATUS -eq 200 && $WORKER_HTTP_STATUS -eq 200 && $API_HTTP_STATUS -eq 200 && $ALERT_HTTP_STATUS -eq 200 ]];then
|
|
||||||
START_HEALTHCHECK_EXITCODE=0
|
|
||||||
else
|
|
||||||
START_HEALTHCHECK_EXITCODE=2
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $START_HEALTHCHECK_EXITCODE -eq 0 ]];then
|
|
||||||
echo "cluster start health check success"
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $i -eq $TIMEOUT ]];then
|
|
||||||
if [[ $MASTER_HTTP_STATUS -ne 200 ]];then
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/master-server/logs/dolphinscheduler-master.log"
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/master-server/logs/*.out"
|
|
||||||
echo "master start health check failed"
|
|
||||||
fi
|
|
||||||
if [[ $WORKER_HTTP_STATUS -ne 200 ]]; then
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/worker-server/logs/dolphinscheduler-worker.log"
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/worker-server/logs/*.out"
|
|
||||||
echo "worker start health check failed"
|
|
||||||
fi
|
|
||||||
if [[ $API_HTTP_STATUS -ne 200 ]]; then
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/api-server/logs/dolphinscheduler-api.log"
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/api-server/logs/*.out"
|
|
||||||
echo "api start health check failed"
|
|
||||||
fi
|
|
||||||
if [[ $ALERT_HTTP_STATUS -ne 200 ]]; then
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/alert-server/logs/dolphinscheduler-alert.log"
|
|
||||||
docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/alert-server/logs/*.out"
|
|
||||||
echo "alert start health check failed"
|
|
||||||
fi
|
|
||||||
exit $START_HEALTHCHECK_EXITCODE
|
|
||||||
fi
|
|
||||||
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
|
|
||||||
#Stop Cluster
|
|
||||||
docker exec -u root ds bash -c "/root/apache-dolphinscheduler-*-SNAPSHOT-bin/bin/stop-all.sh"
|
|
||||||
|
|
||||||
#Cluster stop health check
|
|
||||||
sleep 5
|
|
||||||
MASTER_HTTP_STATUS=$(eval "$MASTER_HEALTHCHECK_COMMAND")
|
|
||||||
if [[ $MASTER_HTTP_STATUS -ne 200 ]];then
|
|
||||||
echo "master stop health check success"
|
|
||||||
else
|
|
||||||
echo "master stop health check failed"
|
|
||||||
exit 3
|
|
||||||
fi
|
|
||||||
|
|
||||||
WORKER_HTTP_STATUS=$(eval "$WORKER_HEALTHCHECK_COMMAND")
|
|
||||||
if [[ $WORKER_HTTP_STATUS -ne 200 ]];then
|
|
||||||
echo "worker stop health check success"
|
|
||||||
else
|
|
||||||
echo "worker stop health check failed"
|
|
||||||
exit 3
|
|
||||||
fi
|
|
||||||
|
|
||||||
API_HTTP_STATUS=$(eval "$API_HEALTHCHECK_COMMAND")
|
|
||||||
if [[ $API_HTTP_STATUS -ne 200 ]];then
|
|
||||||
echo "api stop health check success"
|
|
||||||
else
|
|
||||||
echo "api stop health check failed"
|
|
||||||
exit 3
|
|
||||||
fi
|
|
||||||
|
|
||||||
ALERT_HTTP_STATUS=$(eval "$ALERT_HEALTHCHECK_COMMAND")
|
|
||||||
if [[ $ALERT_HTTP_STATUS -ne 200 ]];then
|
|
||||||
echo "alert stop health check success"
|
|
||||||
else
|
|
||||||
echo "alert stop health check failed"
|
|
||||||
exit 3
|
|
||||||
fi
|
|
||||||
|
|
@ -1,59 +0,0 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
|
||||||
# or more contributor license agreements. See the NOTICE file
|
|
||||||
# distributed with this work for additional information
|
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
|
||||||
# to you under the Apache License, Version 2.0 (the
|
|
||||||
# "License"); you may not use this file except in compliance
|
|
||||||
# with the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
name: "CodeQL"
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- 'dev'
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- 'dev'
|
|
||||||
- '[0-9]+.[0-9]+.[0-9]+-prepare'
|
|
||||||
- '[0-9]+.[0-9]+.[0-9]+-release'
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: codeql-${{ github.event.pull_request.number || github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
analyze:
|
|
||||||
if: (github.event_name == 'schedule' && github.repository == 'apache/dolphinscheduler') || (github.event_name != 'schedule')
|
|
||||||
name: Analyze
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
submodules: true
|
|
||||||
|
|
||||||
- name: Initialize CodeQL
|
|
||||||
uses: github/codeql-action/init@v2
|
|
||||||
with:
|
|
||||||
languages: java
|
|
||||||
queries: +security-and-quality
|
|
||||||
|
|
||||||
- run: |
|
|
||||||
./mvnw -B clean install \
|
|
||||||
-Dmaven.test.skip \
|
|
||||||
-Dmaven.javadoc.skip \
|
|
||||||
-Dspotless.skip=true \
|
|
||||||
-Prelease
|
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
|
||||||
uses: github/codeql-action/analyze@v2
|
|
||||||
|
|
@ -18,6 +18,11 @@ name: Docs
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '.github/workflows/docs.yml'
|
||||||
|
- '**/*.md'
|
||||||
|
- 'docs/**'
|
||||||
|
- '.dlc.json'
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 18 * * *' # TimeZone: UTC 0
|
- cron: '0 18 * * *' # TimeZone: UTC 0
|
||||||
|
|
||||||
|
|
@ -26,21 +31,15 @@ concurrency:
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
style:
|
|
||||||
timeout-minutes: 10
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Style Check
|
|
||||||
run: ./mvnw spotless:check
|
|
||||||
img-check:
|
img-check:
|
||||||
|
name: Image Check
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
working-directory: docs
|
working-directory: docs
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Python 3.9
|
- name: Set up Python 3.9
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
|
|
@ -50,70 +49,16 @@ jobs:
|
||||||
- name: Run Image Check
|
- name: Run Image Check
|
||||||
run: python img_utils.py -v check
|
run: python img_utils.py -v check
|
||||||
dead-link:
|
dead-link:
|
||||||
|
name: Dead Link
|
||||||
if: (github.event_name == 'schedule' && github.repository == 'apache/dolphinscheduler') || (github.event_name != 'schedule')
|
if: (github.event_name == 'schedule' && github.repository == 'apache/dolphinscheduler') || (github.event_name != 'schedule')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
- run: sudo npm install -g markdown-link-check@3.11.2
|
- run: sudo npm install -g markdown-link-check@3.10.0
|
||||||
- run: sudo apt install plocate -y
|
|
||||||
# NOTE: Change command from `find . -name "*.md"` to `find . -not -path "*/node_modules/*" -not -path "*/.tox/*" -name "*.md"`
|
# NOTE: Change command from `find . -name "*.md"` to `find . -not -path "*/node_modules/*" -not -path "*/.tox/*" -name "*.md"`
|
||||||
# if you want to run check locally
|
# if you want to run check locally
|
||||||
- run: |
|
- run: |
|
||||||
for file in $(locate "$PWD*/*.md" | grep -v ./deploy/terraform/aws/README.md); do
|
for file in $(find . -name "*.md"); do
|
||||||
markdown-link-check -c .dlc.json -q "$file" &
|
markdown-link-check -c .dlc.json -q "$file"
|
||||||
done
|
done
|
||||||
wait
|
|
||||||
paths-filter:
|
|
||||||
name: Helm-Doc-Path-Filter
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
outputs:
|
|
||||||
helm-doc: ${{ steps.filter.outputs.helm-doc }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721
|
|
||||||
id: filter
|
|
||||||
with:
|
|
||||||
filters: |
|
|
||||||
helm-doc:
|
|
||||||
- 'deploy/**'
|
|
||||||
helm-doc:
|
|
||||||
name: Helm-Doc-Execute
|
|
||||||
needs: paths-filter
|
|
||||||
if: ${{ (needs.paths-filter.outputs.helm-doc == 'true') || (github.event_name == 'push') }}
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 20
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
submodules: true
|
|
||||||
- name: Generating helm-doc
|
|
||||||
run: |
|
|
||||||
./mvnw validate -P helm-doc -pl :dolphinscheduler
|
|
||||||
- name: Check helm-doc
|
|
||||||
run: |
|
|
||||||
DIFF=$(git diff ${GITHUB_WORKSPACE}/deploy/kubernetes/*md)
|
|
||||||
if [ ! -z "$DIFF" ]; then
|
|
||||||
echo "###### ERROR: helm-doc is not up to date ######"
|
|
||||||
echo "Please execute './mvnw validate -P helm-doc -pl :dolphinscheduler' in your clone, of your fork, of the project, and commit an updated deploy/kubernetes/README.md for the chart."
|
|
||||||
echo "###### ERROR: helm-doc is not up to date ######"
|
|
||||||
fi
|
|
||||||
git diff --exit-code
|
|
||||||
result:
|
|
||||||
name: Docs
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 30
|
|
||||||
needs:
|
|
||||||
- style
|
|
||||||
- img-check
|
|
||||||
- dead-link
|
|
||||||
if: always()
|
|
||||||
steps:
|
|
||||||
- name: Status
|
|
||||||
run: |
|
|
||||||
if [[ ${{ contains(needs.*.result, 'failure') }} == 'true' || ${{ contains(needs.*.result, 'cancelled') }} == 'true' ]]; then
|
|
||||||
echo "Build Failed!"
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
echo "Build Success!"
|
|
||||||
fi
|
|
||||||
|
|
|
||||||
|
|
@ -1,149 +0,0 @@
|
||||||
#
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- dev
|
|
||||||
- '[0-9]+.[0-9]+.[0-9]+-prepare'
|
|
||||||
- '[0-9]+.[0-9]+.[0-9]+-release'
|
|
||||||
|
|
||||||
name: E2E-K8S
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: E2E-K8S-${{ github.event.pull_request.number || github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
paths-filter:
|
|
||||||
name: E2E-K8S-Path-Filter
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
outputs:
|
|
||||||
not-ignore: ${{ steps.filter.outputs.not-ignore }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721
|
|
||||||
id: filter
|
|
||||||
with:
|
|
||||||
filters: |
|
|
||||||
not-ignore:
|
|
||||||
- '!(docs/**)'
|
|
||||||
e2e-k8s:
|
|
||||||
name: E2E-K8S-Execute
|
|
||||||
needs: paths-filter
|
|
||||||
if: ${{ (needs.paths-filter.outputs.not-ignore == 'true') || (github.event_name == 'push') }}
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 20
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
submodules: true
|
|
||||||
- name: Build Image
|
|
||||||
run: |
|
|
||||||
./mvnw -B clean package \
|
|
||||||
-Dmaven.test.skip \
|
|
||||||
-Dmaven.javadoc.skip \
|
|
||||||
-Dspotless.skip=true \
|
|
||||||
-Dmaven.checkstyle.skip \
|
|
||||||
-Dmaven.deploy.skip \
|
|
||||||
-Ddocker.push.skip=true \
|
|
||||||
-Pdocker,release -Ddocker.tag=ci \
|
|
||||||
-pl org.apache.dolphinscheduler:dolphinscheduler-alert-server \
|
|
||||||
-pl dolphinscheduler-tools \
|
|
||||||
-pl dolphinscheduler-api \
|
|
||||||
-pl dolphinscheduler-master \
|
|
||||||
-pl dolphinscheduler-worker -am
|
|
||||||
- name: Create k8s Kind Cluster
|
|
||||||
run: |
|
|
||||||
# install kubectl
|
|
||||||
curl -LO "https://dl.k8s.io/release/v1.28.3/bin/linux/amd64/kubectl"
|
|
||||||
sudo chmod +x kubectl
|
|
||||||
sudo mv kubectl /usr/local/bin/kubectl
|
|
||||||
|
|
||||||
# install kind
|
|
||||||
curl -LO https://github.com/kubernetes-sigs/kind/releases/download/v0.20.0/kind-linux-amd64
|
|
||||||
sudo chmod +x kind-linux-amd64
|
|
||||||
sudo mv kind-linux-amd64 /usr/local/bin/kind
|
|
||||||
kind version
|
|
||||||
|
|
||||||
# create kind cluster
|
|
||||||
kind_node_image="kindest/node:v1.23.17"
|
|
||||||
echo "Kubernetes version: ${kind_node_image}"
|
|
||||||
kind create cluster --name dolphinscheduler --image ${kind_node_image}
|
|
||||||
kubectl version
|
|
||||||
kubectl get all --all-namespaces
|
|
||||||
- name: Load images
|
|
||||||
run: |
|
|
||||||
components=("master" "worker" "api" "tools" "alert-server")
|
|
||||||
for component in "${components[@]}"; do
|
|
||||||
kind load docker-image apache/dolphinscheduler-${component}:ci --name dolphinscheduler
|
|
||||||
done
|
|
||||||
- name: Helm install dolphinscheduler
|
|
||||||
working-directory: ${{ github.workspace }}/deploy/kubernetes/dolphinscheduler
|
|
||||||
run: |
|
|
||||||
# install helm
|
|
||||||
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
|
|
||||||
|
|
||||||
# install ds chart via helm
|
|
||||||
helm repo add bitnami https://charts.bitnami.com/bitnami
|
|
||||||
helm dependency update .
|
|
||||||
helm upgrade --install --create-namespace -n dolphinscheduler dolphinscheduler . -f - <<EOF
|
|
||||||
image:
|
|
||||||
registry: apache
|
|
||||||
tag: ci
|
|
||||||
master:
|
|
||||||
replicas: 1
|
|
||||||
livenessProbe:
|
|
||||||
initialDelaySeconds: 120
|
|
||||||
readinessProbe:
|
|
||||||
initialDelaySeconds: 120
|
|
||||||
worker:
|
|
||||||
replicas: 1
|
|
||||||
livenessProbe:
|
|
||||||
initialDelaySeconds: 120
|
|
||||||
readinessProbe:
|
|
||||||
initialDelaySeconds: 120
|
|
||||||
alert:
|
|
||||||
livenessProbe:
|
|
||||||
initialDelaySeconds: 120
|
|
||||||
readinessProbe:
|
|
||||||
initialDelaySeconds: 120
|
|
||||||
api:
|
|
||||||
livenessProbe:
|
|
||||||
initialDelaySeconds: 120
|
|
||||||
readinessProbe:
|
|
||||||
initialDelaySeconds: 120
|
|
||||||
EOF
|
|
||||||
|
|
||||||
- name: Wait for pods
|
|
||||||
run: |
|
|
||||||
JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}';
|
|
||||||
components=("master" "worker" "api" "alert")
|
|
||||||
for component in "${components[@]}"; do
|
|
||||||
until kubectl -n dolphinscheduler get pods -l app.kubernetes.io/component=${component} -o jsonpath="$JSONPATH" 2>&1 | grep -q "Ready=True"; do
|
|
||||||
echo "waiting for dolphinscheduler ${component} to be available"
|
|
||||||
sleep 10
|
|
||||||
kubectl get pods --all-namespaces
|
|
||||||
kubectl get events --all-namespaces
|
|
||||||
for pod in $(kubectl get pods -n dolphinscheduler -o jsonpath='{.items[*].metadata.name}'); do
|
|
||||||
echo "logs for pod $pod:"
|
|
||||||
kubectl logs --tail=1000 -n dolphinscheduler $pod
|
|
||||||
done
|
|
||||||
done
|
|
||||||
done
|
|
||||||
|
|
@ -20,8 +20,6 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- dev
|
- dev
|
||||||
- '[0-9]+.[0-9]+.[0-9]+-prepare'
|
|
||||||
- '[0-9]+.[0-9]+.[0-9]+-release'
|
|
||||||
|
|
||||||
name: E2E
|
name: E2E
|
||||||
|
|
||||||
|
|
@ -37,7 +35,7 @@ jobs:
|
||||||
outputs:
|
outputs:
|
||||||
not-ignore: ${{ steps.filter.outputs.not-ignore }}
|
not-ignore: ${{ steps.filter.outputs.not-ignore }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721
|
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721
|
||||||
id: filter
|
id: filter
|
||||||
with:
|
with:
|
||||||
|
|
@ -51,7 +49,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Sanity Check
|
- name: Sanity Check
|
||||||
|
|
@ -62,21 +60,21 @@ jobs:
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.m2/repository
|
path: ~/.m2/repository
|
||||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-e2e
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||||
restore-keys: ${{ runner.os }}-maven-
|
restore-keys: ${{ runner.os }}-maven-
|
||||||
- name: Build Image
|
- name: Build Image
|
||||||
run: |
|
run: |
|
||||||
./mvnw -B clean install \
|
./mvnw -B clean install \
|
||||||
-Dmaven.test.skip \
|
-Dmaven.test.skip \
|
||||||
-Dmaven.javadoc.skip \
|
-Dmaven.javadoc.skip \
|
||||||
-Dspotless.skip=true \
|
-Dcheckstyle.skip=true \
|
||||||
-Pdocker,release -Ddocker.tag=ci \
|
-Pdocker,release -Ddocker.tag=ci \
|
||||||
-pl dolphinscheduler-standalone-server -am
|
-pl dolphinscheduler-standalone-server -am
|
||||||
- name: Export Docker Images
|
- name: Export Docker Images
|
||||||
run: |
|
run: |
|
||||||
docker save apache/dolphinscheduler-standalone-server:ci -o /tmp/standalone-image.tar \
|
docker save apache/dolphinscheduler-standalone-server:ci -o /tmp/standalone-image.tar \
|
||||||
&& du -sh /tmp/standalone-image.tar
|
&& du -sh /tmp/standalone-image.tar
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v2
|
||||||
name: Upload Docker Images
|
name: Upload Docker Images
|
||||||
with:
|
with:
|
||||||
name: standalone-image
|
name: standalone-image
|
||||||
|
|
@ -108,62 +106,20 @@ jobs:
|
||||||
class: org.apache.dolphinscheduler.e2e.cases.TokenE2ETest
|
class: org.apache.dolphinscheduler.e2e.cases.TokenE2ETest
|
||||||
- name: Workflow
|
- name: Workflow
|
||||||
class: org.apache.dolphinscheduler.e2e.cases.WorkflowE2ETest
|
class: org.apache.dolphinscheduler.e2e.cases.WorkflowE2ETest
|
||||||
- name: WorkflowHttp
|
|
||||||
class: org.apache.dolphinscheduler.e2e.cases.WorkflowHttpTaskE2ETest
|
|
||||||
- name: WorkflowJava
|
|
||||||
class: org.apache.dolphinscheduler.e2e.cases.WorkflowJavaTaskE2ETest
|
|
||||||
# - name: WorkflowForSwitch
|
# - name: WorkflowForSwitch
|
||||||
# class: org.apache.dolphinscheduler.e2e.cases.WorkflowSwitchE2ETest
|
# class: org.apache.dolphinscheduler.e2e.cases.WorkflowSwitchE2ETest
|
||||||
- name: FileManage
|
- name: FileManage
|
||||||
class: org.apache.dolphinscheduler.e2e.cases.FileManageE2ETest
|
class: org.apache.dolphinscheduler.e2e.cases.FileManageE2ETest
|
||||||
|
- name: UdfManage
|
||||||
|
class: org.apache.dolphinscheduler.e2e.cases.UdfManageE2ETest
|
||||||
|
- name: FunctionManage
|
||||||
|
class: org.apache.dolphinscheduler.e2e.cases.FunctionManageE2ETest
|
||||||
- name: MysqlDataSource
|
- name: MysqlDataSource
|
||||||
class: org.apache.dolphinscheduler.e2e.cases.MysqlDataSourceE2ETest
|
class: org.apache.dolphinscheduler.e2e.cases.MysqlDataSourceE2ETest
|
||||||
- name: ClickhouseDataSource
|
- name: ClickhouseDataSource
|
||||||
class: org.apache.dolphinscheduler.e2e.cases.ClickhouseDataSourceE2ETest
|
class: org.apache.dolphinscheduler.e2e.cases.ClickhouseDataSourceE2ETest
|
||||||
- name: PostgresDataSource
|
- name: PostgresDataSource
|
||||||
class: org.apache.dolphinscheduler.e2e.cases.PostgresDataSourceE2ETest
|
class: org.apache.dolphinscheduler.e2e.cases.PostgresDataSourceE2ETest
|
||||||
- name: ShellTaskE2ETest
|
|
||||||
class: org.apache.dolphinscheduler.e2e.cases.tasks.ShellTaskE2ETest
|
|
||||||
env:
|
|
||||||
RECORDING_PATH: /tmp/recording-${{ matrix.case.name }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
submodules: true
|
|
||||||
- name: Cache local Maven repository
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: ~/.m2/repository
|
|
||||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-e2e
|
|
||||||
restore-keys: ${{ runner.os }}-maven-
|
|
||||||
- uses: actions/download-artifact@v4
|
|
||||||
name: Download Docker Images
|
|
||||||
with:
|
|
||||||
name: standalone-image
|
|
||||||
path: /tmp
|
|
||||||
- name: Load Docker Images
|
|
||||||
run: |
|
|
||||||
docker load -i /tmp/standalone-image.tar
|
|
||||||
- name: Run Test
|
|
||||||
run: |
|
|
||||||
./mvnw -B -f dolphinscheduler-e2e/pom.xml -am \
|
|
||||||
-DfailIfNoTests=false \
|
|
||||||
-Dtest=${{ matrix.case.class }} test
|
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
if: always()
|
|
||||||
name: Upload Recording
|
|
||||||
with:
|
|
||||||
name: recording-${{ matrix.case.name }}
|
|
||||||
path: ${{ env.RECORDING_PATH }}
|
|
||||||
retention-days: 1
|
|
||||||
e2e-optional:
|
|
||||||
name: ${{ matrix.case.name }}
|
|
||||||
needs: build
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 30
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
case:
|
|
||||||
- name: SqlServerDataSource
|
- name: SqlServerDataSource
|
||||||
class: org.apache.dolphinscheduler.e2e.cases.SqlServerDataSourceE2ETest
|
class: org.apache.dolphinscheduler.e2e.cases.SqlServerDataSourceE2ETest
|
||||||
- name: HiveDataSource
|
- name: HiveDataSource
|
||||||
|
|
@ -171,29 +127,29 @@ jobs:
|
||||||
env:
|
env:
|
||||||
RECORDING_PATH: /tmp/recording-${{ matrix.case.name }}
|
RECORDING_PATH: /tmp/recording-${{ matrix.case.name }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Cache local Maven repository
|
- name: Cache local Maven repository
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.m2/repository
|
path: ~/.m2/repository
|
||||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-e2e
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||||
restore-keys: ${{ runner.os }}-maven-
|
restore-keys: ${{ runner.os }}-maven-
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v2
|
||||||
name: Download Docker Images
|
name: Download Docker Images
|
||||||
with:
|
with:
|
||||||
name: standalone-image
|
name: standalone-image
|
||||||
path: /tmp
|
path: /tmp
|
||||||
- name: Load Docker Images
|
- name: Load Docker Images
|
||||||
run: |
|
run: |
|
||||||
docker load -i /tmp/standalone-image.tar
|
docker load -i /tmp/standalone-image.tar
|
||||||
- name: Run Test
|
- name: Run Test
|
||||||
run: |
|
run: |
|
||||||
./mvnw -B -f dolphinscheduler-e2e/pom.xml -am \
|
./mvnw -B -f dolphinscheduler-e2e/pom.xml -am \
|
||||||
-DfailIfNoTests=false \
|
-DfailIfNoTests=false \
|
||||||
-Dtest=${{ matrix.case.class }} test
|
-Dtest=${{ matrix.case.class }} test
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v2
|
||||||
if: always()
|
if: always()
|
||||||
name: Upload Recording
|
name: Upload Recording
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -20,12 +20,14 @@ name: Frontend
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- '[0-9]+.[0-9]+.[0-9]+-prepare'
|
- dev
|
||||||
- '[0-9]+.[0-9]+.[0-9]+-release'
|
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/frontend.yml'
|
- '.github/workflows/frontend.yml'
|
||||||
- 'dolphinscheduler-ui/**'
|
- 'dolphinscheduler-ui/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '.github/workflows/frontend.yml'
|
||||||
|
- 'dolphinscheduler-ui/**'
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
|
|
@ -36,30 +38,15 @@ concurrency:
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
paths-filter:
|
|
||||||
name: Frontend-Path-Filter
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
outputs:
|
|
||||||
not-ignore: ${{ steps.filter.outputs.not-ignore }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721
|
|
||||||
id: filter
|
|
||||||
with:
|
|
||||||
filters: |
|
|
||||||
not-ignore:
|
|
||||||
- '!(docs/**)'
|
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
needs: paths-filter
|
|
||||||
if: ${{ (needs.paths-filter.outputs.not-ignore == 'true') || (github.event_name == 'push') }}
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
timeout-minutes: 30
|
timeout-minutes: 20
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ ubuntu-latest, macos-latest ]
|
os: [ ubuntu-latest, macos-latest ]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- if: matrix.os == 'ubuntu-latest'
|
- if: matrix.os == 'ubuntu-latest'
|
||||||
|
|
@ -69,28 +56,9 @@ jobs:
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
- name: Compile and Build on ${{ matrix.os }}
|
- name: Compile and Build
|
||||||
run: |
|
run: |
|
||||||
set -x
|
npm install pnpm -g
|
||||||
npm install pnpm@7 -g
|
|
||||||
pnpm install
|
pnpm install
|
||||||
pnpm run lint
|
pnpm run lint
|
||||||
pnpm run build:prod
|
pnpm run build:prod
|
||||||
result:
|
|
||||||
name: Frontend Build
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 30
|
|
||||||
needs: [ build, paths-filter ]
|
|
||||||
if: always()
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Status
|
|
||||||
run: |
|
|
||||||
if [[ ${{ needs.paths-filter.outputs.not-ignore }} == 'false' && ${{ github.event_name }} == 'pull_request' ]]; then
|
|
||||||
echo "Skip Frontend Build!"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
if [[ ${{ needs.build.result }} != 'success' ]]; then
|
|
||||||
echo "Frontend Build Failed!"
|
|
||||||
exit -1
|
|
||||||
fi
|
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: "Checkout ${{ github.ref }}"
|
- name: "Checkout ${{ github.ref }}"
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
@ -42,6 +42,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
message: |
|
message: |
|
||||||
Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
|
Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
|
||||||
* In order for us to understand your request as soon as possible, please provide detailed information, version or pictures.
|
* In order for us to understand your request as soon as possible, please provide detailed information、version or pictures.
|
||||||
* If you haven't received a reply for a long time, you can [join our slack](https://s.apache.org/dolphinscheduler-slack) and send your question to channel `#troubleshooting`
|
* If you haven't received a reply for a long time, you can [join our slack](https://s.apache.org/dolphinscheduler-slack) and send your question to channel `#troubleshooting`
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
|
||||||
|
|
@ -1,63 +0,0 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
|
||||||
# or more contributor license agreements. See the NOTICE file
|
|
||||||
# distributed with this work for additional information
|
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
|
||||||
# to you under the Apache License, Version 2.0 (the
|
|
||||||
# "License"); you may not use this file except in compliance
|
|
||||||
# with the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing,
|
|
||||||
# software distributed under the License is distributed on an
|
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
# KIND, either express or implied. See the License for the
|
|
||||||
# specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
types:
|
|
||||||
- opened
|
|
||||||
- reopened
|
|
||||||
- synchronize
|
|
||||||
- labeled
|
|
||||||
- unlabeled
|
|
||||||
- milestoned
|
|
||||||
- demilestoned
|
|
||||||
|
|
||||||
|
|
||||||
name: "Mergeable"
|
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
result:
|
|
||||||
name: "Mergeable: milestone-label-check"
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 10
|
|
||||||
steps:
|
|
||||||
- name: Check milestone and labels
|
|
||||||
uses: actions/github-script@v7
|
|
||||||
with:
|
|
||||||
script: |
|
|
||||||
const { data } = await github.request("GET /repos/{owner}/{repo}/pulls/{pr}", {
|
|
||||||
owner: context.repo.owner,
|
|
||||||
repo: context.repo.repo,
|
|
||||||
pr: context.payload.pull_request.number
|
|
||||||
});
|
|
||||||
if (data.milestone) {
|
|
||||||
core.info(`This pull request has a milestone: ${data.milestone.title}`);
|
|
||||||
} else {
|
|
||||||
core.setFailed(`A maintainer needs to set the milestone for this pull request.`);
|
|
||||||
}
|
|
||||||
let labeledFlag = false;
|
|
||||||
for (const label of data.labels) {
|
|
||||||
if (['feature', 'bug', 'improvement', 'document', 'chore', 'DSIP', 'CI&CD', 'revert'].includes(label.name)) {
|
|
||||||
core.info(`This pull request has a valid label: ${label.name}`);
|
|
||||||
labeledFlag = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!labeledFlag) {
|
|
||||||
core.setFailed(`A maintainer needs to set a valid label for this pull request.`);
|
|
||||||
}
|
|
||||||
|
|
@ -19,9 +19,6 @@ name: OWASP Dependency Check
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- '[0-9]+.[0-9]+.[0-9]+-prepare'
|
|
||||||
- '[0-9]+.[0-9]+.[0-9]+-release'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- '**/pom.xml'
|
- '**/pom.xml'
|
||||||
|
|
@ -31,9 +28,8 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 120
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Set up JDK 8
|
- name: Set up JDK 8
|
||||||
|
|
@ -42,11 +38,11 @@ jobs:
|
||||||
java-version: 8
|
java-version: 8
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
- name: Run OWASP Dependency Check
|
- name: Run OWASP Dependency Check
|
||||||
run: ./mvnw -B clean install verify dependency-check:check -DskipDepCheck=false -Dmaven.test.skip=true -Dspotless.skip=true
|
run: ./mvnw -B clean install verify dependency-check:check -DskipDepCheck=false -Dmaven.test.skip=true -Dcheckstyle.skip=true
|
||||||
- name: Upload report
|
- name: Upload report
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v3
|
||||||
if: ${{ cancelled() || failure() }}
|
if: ${{ cancelled() || failure() }}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
name: dependency report
|
name: dependency report
|
||||||
path: target/dependency-check-report.html
|
path: target/dependency-check-report.html
|
||||||
|
|
@ -33,13 +33,14 @@ jobs:
|
||||||
packages: write
|
packages: write
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
- name: Cache local Maven repository
|
- name: Cache local Maven repository
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.m2/repository
|
path: ~/.m2/repository
|
||||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-docker
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||||
restore-keys: ${{ runner.os }}-maven-
|
restore-keys: |
|
||||||
|
${{ runner.os }}-maven-
|
||||||
- name: Set environment variables
|
- name: Set environment variables
|
||||||
run: |
|
run: |
|
||||||
if [[ ${{ github.event_name }} == "release" ]]; then
|
if [[ ${{ github.event_name }} == "release" ]]; then
|
||||||
|
|
@ -70,7 +71,7 @@ jobs:
|
||||||
./mvnw -B clean deploy \
|
./mvnw -B clean deploy \
|
||||||
-Dmaven.test.skip \
|
-Dmaven.test.skip \
|
||||||
-Dmaven.javadoc.skip \
|
-Dmaven.javadoc.skip \
|
||||||
-Dspotless.skip=true \
|
-Dcheckstyle.skip=true \
|
||||||
-Dmaven.deploy.skip \
|
-Dmaven.deploy.skip \
|
||||||
-Ddocker.tag=${{ env.DOCKER_TAG }} \
|
-Ddocker.tag=${{ env.DOCKER_TAG }} \
|
||||||
-Ddocker.hub=${{ env.HUB }} \
|
-Ddocker.hub=${{ env.HUB }} \
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,9 @@ on:
|
||||||
types:
|
types:
|
||||||
- released
|
- released
|
||||||
|
|
||||||
|
env:
|
||||||
|
HUB: ghcr.io/apache/dolphinscheduler
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
if: github.repository == 'apache/dolphinscheduler'
|
if: github.repository == 'apache/dolphinscheduler'
|
||||||
|
|
@ -33,9 +36,10 @@ jobs:
|
||||||
packages: write
|
packages: write
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
- name: Set environment variables
|
- name: Set environment variables
|
||||||
run: |
|
run: |
|
||||||
|
# TODO
|
||||||
if [[ ${{ github.event_name }} == "release" ]]; then
|
if [[ ${{ github.event_name }} == "release" ]]; then
|
||||||
echo "HUB=registry-1.docker.io/apache" >> $GITHUB_ENV
|
echo "HUB=registry-1.docker.io/apache" >> $GITHUB_ENV
|
||||||
echo "DOCKER_REGISTRY=docker.io" >> $GITHUB_ENV
|
echo "DOCKER_REGISTRY=docker.io" >> $GITHUB_ENV
|
||||||
|
|
@ -43,7 +47,7 @@ jobs:
|
||||||
echo "DOCKER_PASSWORD=${{ secrets.DOCKERHUB_TOKEN }}" >> $GITHUB_ENV
|
echo "DOCKER_PASSWORD=${{ secrets.DOCKERHUB_TOKEN }}" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
echo "HUB=ghcr.io/apache/dolphinscheduler" >> $GITHUB_ENV
|
echo "HUB=ghcr.io/apache/dolphinscheduler" >> $GITHUB_ENV
|
||||||
echo "DOCKER_REGISTRY=ghcr.io/apache/dolphinscheduler" >> $GITHUB_ENV
|
echo "DOCKER_REGISTRY=c" >> $GITHUB_ENV
|
||||||
echo "DOCKER_USERNAME=${{ github.actor }}" >> $GITHUB_ENV
|
echo "DOCKER_USERNAME=${{ github.actor }}" >> $GITHUB_ENV
|
||||||
echo "DOCKER_PASSWORD=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
|
echo "DOCKER_PASSWORD=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -15,21 +15,20 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
name: "pull-request-target-robot"
|
name: "pull-request-robot"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pullRequestTargetRobot:
|
labelRobot:
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
|
||||||
steps:
|
steps:
|
||||||
- name: "Checkout ${{ github.ref }}"
|
- name: "Checkout ${{ github.ref }}"
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
@ -40,8 +39,3 @@ jobs:
|
||||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
configuration-path: .github/actions/labeler/labeler.yml
|
configuration-path: .github/actions/labeler/labeler.yml
|
||||||
sync-labels: true
|
sync-labels: true
|
||||||
|
|
||||||
- name: "Auto assign in pull request"
|
|
||||||
uses: ./.github/actions/auto-assign-action
|
|
||||||
with:
|
|
||||||
configuration-path: .github/actions/auto-assign/auto-assign.yml
|
|
||||||
|
|
@ -32,8 +32,8 @@ jobs:
|
||||||
# Stale Issues
|
# Stale Issues
|
||||||
days-before-issue-stale: 30
|
days-before-issue-stale: 30
|
||||||
days-before-issue-close: 7
|
days-before-issue-close: 7
|
||||||
# We do not stale Issues with label `Waiting for reply`, `feature` and `DSIP`
|
# We do not stale Issues with label `Waiting for reply`, `new feature` and `DSIP`
|
||||||
exempt-issue-labels: 'Waiting for reply,feature,DSIP,security,roadmap'
|
exempt-issue-labels: 'Waiting for reply,new feature,DSIP,security'
|
||||||
stale-issue-message: >
|
stale-issue-message: >
|
||||||
This issue has been automatically marked as stale because it has not had recent activity
|
This issue has been automatically marked as stale because it has not had recent activity
|
||||||
for 30 days. It will be closed in next 7 days if no further activity occurs.
|
for 30 days. It will be closed in next 7 days if no further activity occurs.
|
||||||
|
|
|
||||||
|
|
@ -24,8 +24,7 @@ on:
|
||||||
- '**/*.md'
|
- '**/*.md'
|
||||||
- 'dolphinscheduler-ui'
|
- 'dolphinscheduler-ui'
|
||||||
branches:
|
branches:
|
||||||
- '[0-9]+.[0-9]+.[0-9]+-prepare'
|
- dev
|
||||||
- '[0-9]+.[0-9]+.[0-9]+-release'
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
LOG_DIR: /tmp/dolphinscheduler
|
LOG_DIR: /tmp/dolphinscheduler
|
||||||
|
|
@ -41,7 +40,7 @@ jobs:
|
||||||
outputs:
|
outputs:
|
||||||
not-ignore: ${{ steps.filter.outputs.not-ignore }}
|
not-ignore: ${{ steps.filter.outputs.not-ignore }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721
|
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721
|
||||||
id: filter
|
id: filter
|
||||||
with:
|
with:
|
||||||
|
|
@ -58,7 +57,7 @@ jobs:
|
||||||
java: ['8', '11']
|
java: ['8', '11']
|
||||||
timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Sanity Check
|
- name: Sanity Check
|
||||||
|
|
@ -73,26 +72,25 @@ jobs:
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.m2/repository
|
path: ~/.m2/repository
|
||||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-unit-test
|
key: ${{ runner.os }}-maven
|
||||||
restore-keys: ${{ runner.os }}-maven-
|
|
||||||
|
|
||||||
- name: Run Unit tests
|
- name: Run Unit tests
|
||||||
run: ./mvnw clean verify -B -Dmaven.test.skip=false -Dspotless.skip=true -DskipUT=false
|
run: ./mvnw clean verify -B -Dmaven.test.skip=false -Dcheckstyle.skip=true
|
||||||
- name: Upload coverage report to codecov
|
- name: Upload coverage report to codecov
|
||||||
run: CODECOV_TOKEN="09c2663f-b091-4258-8a47-c981827eb29a" bash <(curl -s https://codecov.io/bash)
|
run: CODECOV_TOKEN="09c2663f-b091-4258-8a47-c981827eb29a" bash <(curl -s https://codecov.io/bash)
|
||||||
|
|
||||||
# Set up JDK 17 for SonarCloud.
|
# Set up JDK 11 for SonarCloud.
|
||||||
- name: Set up JDK 17
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
java-version: 17
|
java-version: 11
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
- name: Run SonarCloud Analysis
|
- name: Run SonarCloud Analysis
|
||||||
run: >
|
run: >
|
||||||
./mvnw --batch-mode verify sonar:sonar
|
./mvnw --batch-mode verify sonar:sonar
|
||||||
-Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml
|
-Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml
|
||||||
-Dmaven.test.skip=true
|
-Dmaven.test.skip=true
|
||||||
-Dspotless.skip=true
|
-Dcheckstyle.skip=true
|
||||||
-Dsonar.host.url=https://sonarcloud.io
|
-Dsonar.host.url=https://sonarcloud.io
|
||||||
-Dsonar.organization=apache
|
-Dsonar.organization=apache
|
||||||
-Dsonar.core.codeCoveragePlugin=jacoco
|
-Dsonar.core.codeCoveragePlugin=jacoco
|
||||||
|
|
@ -100,11 +98,22 @@ jobs:
|
||||||
-Dsonar.login=e4058004bc6be89decf558ac819aa1ecbee57682
|
-Dsonar.login=e4058004bc6be89decf558ac819aa1ecbee57682
|
||||||
-Dsonar.exclusions=,dolphinscheduler-ui/src/**/i18n/locale/*.js,dolphinscheduler-microbench/src/**/*
|
-Dsonar.exclusions=,dolphinscheduler-ui/src/**/i18n/locale/*.js,dolphinscheduler-microbench/src/**/*
|
||||||
-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120
|
-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120
|
||||||
-DskipUT=true
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
|
|
||||||
|
- name: Collect logs
|
||||||
|
continue-on-error: true
|
||||||
|
run: |
|
||||||
|
mkdir -p ${LOG_DIR}
|
||||||
|
docker-compose -f $(pwd)/docker/docker-swarm/docker-compose.yml logs dolphinscheduler-postgresql > ${LOG_DIR}/db.txt
|
||||||
|
|
||||||
|
- name: Upload logs
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
name: unit-test-logs
|
||||||
|
path: ${LOG_DIR}
|
||||||
result:
|
result:
|
||||||
name: Unit Test
|
name: Unit Test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,6 @@
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.target
|
.target
|
||||||
.idea/
|
.idea/
|
||||||
!.idea/icon.png
|
|
||||||
!.idea/vcs.xml
|
|
||||||
.run/
|
.run/
|
||||||
target/
|
target/
|
||||||
dist/
|
dist/
|
||||||
|
|
@ -40,7 +38,6 @@ config.gypi
|
||||||
test/coverage
|
test/coverage
|
||||||
/docs/zh_CN/介绍
|
/docs/zh_CN/介绍
|
||||||
/docs/zh_CN/贡献代码.md
|
/docs/zh_CN/贡献代码.md
|
||||||
derby.log
|
|
||||||
dolphinscheduler-common/src/main/resources/zookeeper.properties
|
dolphinscheduler-common/src/main/resources/zookeeper.properties
|
||||||
dolphinscheduler-dao/src/main/resources/dao/data_source.properties
|
dolphinscheduler-dao/src/main/resources/dao/data_source.properties
|
||||||
dolphinscheduler-alert/logs/
|
dolphinscheduler-alert/logs/
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,3 @@
|
||||||
[submodule ".github/actions/translate-on-issue"]
|
[submodule ".github/actions/translate-on-issue"]
|
||||||
path = .github/actions/translate-on-issue
|
path = .github/actions/translate-on-issue
|
||||||
url = https://github.com/xingchun-chen/translation-helper
|
url = https://github.com/xingchun-chen/translation-helper
|
||||||
[submodule ".github/actions/auto-assign-action"]
|
|
||||||
path = .github/actions/auto-assign-action
|
|
||||||
url = https://github.com/kentaro-m/auto-assign-action.git
|
|
||||||
branch = 288f36f
|
|
||||||
|
|
|
||||||
BIN
.idea/icon.png
BIN
.idea/icon.png
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB |
|
|
@ -1,16 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="IssueNavigationConfiguration">
|
|
||||||
<option name="links">
|
|
||||||
<list>
|
|
||||||
<IssueNavigationLink>
|
|
||||||
<option name="issueRegexp" value="#(\d+)" />
|
|
||||||
<option name="linkRegexp" value="https://github.com/apache/dolphinscheduler/issues/$1" />
|
|
||||||
</IssueNavigationLink>
|
|
||||||
</list>
|
|
||||||
</option>
|
|
||||||
</component>
|
|
||||||
<component name="VcsDirectoryMappings">
|
|
||||||
<mapping directory="" vcs="Git" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
||||||
|
|
@ -46,11 +46,5 @@ header:
|
||||||
- '.github/actions/comment-on-issue/**'
|
- '.github/actions/comment-on-issue/**'
|
||||||
- '.github/actions/translate-on-issue/**'
|
- '.github/actions/translate-on-issue/**'
|
||||||
- '**/.gitkeep'
|
- '**/.gitkeep'
|
||||||
- 'org.mockito.plugins.MockMaker'
|
|
||||||
- tools/dependencies/known-dependencies.txt
|
|
||||||
- '**/banner.txt'
|
|
||||||
- '.terraform.lock.hcl'
|
|
||||||
- deploy/kubernetes/dolphinscheduler/README.md.gotmpl
|
|
||||||
- .idea/vcs.xml
|
|
||||||
|
|
||||||
comment: on-failure
|
comment: on-failure
|
||||||
|
|
|
||||||
|
|
@ -1,60 +0,0 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
|
||||||
# or more contributor license agreements. See the NOTICE file
|
|
||||||
# distributed with this work for additional information
|
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
|
||||||
# to you under the Apache License, Version 2.0 (the
|
|
||||||
# "License"); you may not use this file except in compliance
|
|
||||||
# with the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing,
|
|
||||||
# software distributed under the License is distributed on an
|
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
# KIND, either express or implied. See the License for the
|
|
||||||
# specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
# See https://pre-commit.com for more information
|
|
||||||
# See https://pre-commit.com/hooks.html for more hooks
|
|
||||||
|
|
||||||
default_stages: [commit, push]
|
|
||||||
default_language_version:
|
|
||||||
# force all python hooks to run python3
|
|
||||||
python: python3
|
|
||||||
repos:
|
|
||||||
# Python API Hooks
|
|
||||||
- repo: https://github.com/pycqa/isort
|
|
||||||
rev: 5.10.1
|
|
||||||
hooks:
|
|
||||||
- id: isort
|
|
||||||
name: isort (python)
|
|
||||||
- repo: https://github.com/psf/black
|
|
||||||
rev: 22.3.0
|
|
||||||
hooks:
|
|
||||||
- id: black
|
|
||||||
- repo: https://github.com/pycqa/flake8
|
|
||||||
rev: 4.0.1
|
|
||||||
hooks:
|
|
||||||
- id: flake8
|
|
||||||
additional_dependencies: [
|
|
||||||
'flake8-docstrings>=1.6',
|
|
||||||
'flake8-black>=0.2',
|
|
||||||
]
|
|
||||||
- repo: https://github.com/pycqa/autoflake
|
|
||||||
rev: v1.4
|
|
||||||
hooks:
|
|
||||||
- id: autoflake
|
|
||||||
args: [
|
|
||||||
--remove-all-unused-imports,
|
|
||||||
--ignore-init-module-imports,
|
|
||||||
--in-place
|
|
||||||
]
|
|
||||||
- repo: local
|
|
||||||
hooks:
|
|
||||||
# Spotless Hooks
|
|
||||||
- id: spotless
|
|
||||||
name: spotless lint
|
|
||||||
entry: ./mvnw spotless:check
|
|
||||||
language: script
|
|
||||||
pass_filenames: false
|
|
||||||
|
|
@ -21,4 +21,4 @@ Artifact:
|
||||||
```
|
```
|
||||||
dolphinscheduler-dist/target/apache-dolphinscheduler-${latest.release.version}-bin.tar.gz: Binary package of DolphinScheduler
|
dolphinscheduler-dist/target/apache-dolphinscheduler-${latest.release.version}-bin.tar.gz: Binary package of DolphinScheduler
|
||||||
dolphinscheduler-dist/target/apache-dolphinscheduler-${latest.release.version}-src.tar.gz: Source code package of DolphinScheduler
|
dolphinscheduler-dist/target/apache-dolphinscheduler-${latest.release.version}-src.tar.gz: Source code package of DolphinScheduler
|
||||||
```
|
```
|
||||||
|
|
|
||||||
2
NOTICE
2
NOTICE
|
|
@ -1,5 +1,5 @@
|
||||||
Apache DolphinScheduler
|
Apache DolphinScheduler
|
||||||
Copyright 2019-2023 The Apache Software Foundation
|
Copyright 2019-2022 The Apache Software Foundation
|
||||||
|
|
||||||
This product includes software developed at
|
This product includes software developed at
|
||||||
The Apache Software Foundation (http://www.apache.org/).
|
The Apache Software Foundation (http://www.apache.org/).
|
||||||
|
|
|
||||||
19
README.md
19
README.md
|
|
@ -3,7 +3,7 @@
|
||||||
[](https://www.apache.org/licenses/LICENSE-2.0.html)
|
[](https://www.apache.org/licenses/LICENSE-2.0.html)
|
||||||

|

|
||||||
[](https://sonarcloud.io/dashboard?id=apache-dolphinscheduler)
|
[](https://sonarcloud.io/dashboard?id=apache-dolphinscheduler)
|
||||||
[](https://twitter.com/dolphinschedule) <!-- markdown-link-check-disable-line -->
|
[](https://twitter.com/dolphinschedule)
|
||||||
[](https://s.apache.org/dolphinscheduler-slack)
|
[](https://s.apache.org/dolphinscheduler-slack)
|
||||||
[](README_zh_CN.md)
|
[](README_zh_CN.md)
|
||||||
|
|
||||||
|
|
@ -31,8 +31,12 @@ The key features for DolphinScheduler are as follows:
|
||||||
- Want to [start with Docker](https://dolphinscheduler.apache.org/en-us/docs/3.1.5/guide/start/docker)
|
- Want to [start with Docker](https://dolphinscheduler.apache.org/en-us/docs/3.1.5/guide/start/docker)
|
||||||
- For Kubernetes
|
- For Kubernetes
|
||||||
- [Start with Kubernetes](https://dolphinscheduler.apache.org/en-us/docs/3.1.5/guide/installation/kubernetes)
|
- [Start with Kubernetes](https://dolphinscheduler.apache.org/en-us/docs/3.1.5/guide/installation/kubernetes)
|
||||||
- For Terraform
|
|
||||||
- [Start with Terraform](deploy/terraform/README.md)
|
| Stability | Accessibility | Features | Scalability |
|
||||||
|
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
|
| Decentralized multi-master and multi-worker | Visualization of workflow key information, such as task status, task type, retry times, task operation machine information, visual variables, and so on at a glance. | Support pause, recover operation | Support customized task types |
|
||||||
|
| support HA | Visualization of all workflow operations, dragging tasks to draw DAGs, configuring data sources and resources. At the same time, for third-party systems, provide API mode operations. | Users on DolphinScheduler can achieve many-to-one or one-to-one mapping relationship through tenants and Hadoop users, which is very important for scheduling large data jobs. | The scheduler supports distributed scheduling, and the overall scheduling capability will increase linearly with the scale of the cluster. Master and Worker support dynamic adjustment. |
|
||||||
|
| Overload processing: By using the task queue mechanism, the number of schedulable tasks on a single machine can be flexibly configured. Machine jam can be avoided with high tolerance to numbers of tasks cached in task queue. | One-click deployment | Support traditional shell tasks, and big data platform task scheduling: MR, Spark, SQL (MySQL, PostgreSQL, hive, spark SQL), Python, Procedure, Sub_Process | |
|
||||||
|
|
||||||
## User Interface Screenshots
|
## User Interface Screenshots
|
||||||
|
|
||||||
|
|
@ -65,14 +69,15 @@ find the good first issue in [here](https://github.com/apache/dolphinscheduler/c
|
||||||
Welcome to join the Apache DolphinScheduler community by:
|
Welcome to join the Apache DolphinScheduler community by:
|
||||||
|
|
||||||
- Join the [DolphinScheduler Slack](https://s.apache.org/dolphinscheduler-slack) to keep in touch with the community
|
- Join the [DolphinScheduler Slack](https://s.apache.org/dolphinscheduler-slack) to keep in touch with the community
|
||||||
- Follow the [DolphinScheduler Twitter](https://twitter.com/dolphinschedule) and get the latest news <!-- markdown-link-check-disable-line -->
|
- Follow the [DolphinScheduler Twitter](https://twitter.com/dolphinschedule) and get the latest news
|
||||||
- Subscribe DolphinScheduler mail list, [users@dolphinscheduler.apache.org](mailto:users-subscribe@dolphinscheduler.apache.org) for user and [dev@dolphinscheduler.apache.org](mailto:dev-subscribe@dolphinscheduler.apache.org) for developer
|
- Subscribe DolphinScheduler mail list, users@dolphinscheduler.apache.org for user and dev@dolphinscheduler.apache.org for developer
|
||||||
|
|
||||||
# Landscapes
|
# Landscapes
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
<img src="./images/cncf-landscape-white-bg.jpg" width="175" alt="cncf-landscape"/> <img src="./images/cncf-white-bg.jpg" width="200" alt="cncf-logo"/>
|
<img src="https://landscape.cncf.io/images/left-logo.svg" width="150"/> <img src="https://landscape.cncf.io/images/right-logo.svg" width="200"/>
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
DolphinScheduler enriches the <a href="https://landscape.cncf.io/?item=orchestration-management--scheduling-orchestration--dolphinscheduler">CNCF CLOUD NATIVE Landscape.</a >
|
DolphinScheduler enriches the <a href="https://landscape.cncf.io/?landscape=observability-and-analysis&license=apache-license-2-0">CNCF CLOUD NATIVE Landscape.</a >
|
||||||
|
|
||||||
</p >
|
</p >
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,21 @@
|
||||||
# Apache Dolphinscheduler
|
# Apache Dolphinscheduler
|
||||||
|
|
||||||
[](https://www.apache.org/licenses/LICENSE-2.0.html)
|
[](https://www.apache.org/licenses/LICENSE-2.0.html)
|
||||||
[]()
|
[](https://codecov.io/gh/apache/dolphinscheduler/branch/dev)
|
||||||
[](https://sonarcloud.io/dashboard?id=apache-dolphinscheduler)
|
[](https://sonarcloud.io/dashboard?id=apache-dolphinscheduler)
|
||||||
[](https://twitter.com/dolphinschedule) <!-- markdown-link-check-disable-line -->
|
[](https://twitter.com/dolphinschedule)
|
||||||
[](https://s.apache.org/dolphinscheduler-slack)
|
[](https://s.apache.org/dolphinscheduler-slack)
|
||||||
[](README.md)
|
[](README.md)
|
||||||
|
|
||||||
## 关于
|
## 关于
|
||||||
|
|
||||||
一个分布式易扩展的可视化 DAG 工作流任务调度系统。致力于解决数据处理流程中错综复杂的依赖关系,使调度系统在数据处理流程中`开箱即用`。
|
一个分布式易扩展的可视化DAG工作流任务调度系统。致力于解决数据处理流程中错综复杂的依赖关系,使调度系统在数据处理流程中`开箱即用`。
|
||||||
|
|
||||||
DolphinScheduler 的主要特性如下:
|
DolphinScheduler 的主要特性如下:
|
||||||
|
|
||||||
- 易于部署,提供四种部署方式,包括Standalone、Cluster、Docker和Kubernetes
|
- 易于部署,提供四种部署方式,包括Standalone、Cluster、Docker和Kubernetes。
|
||||||
- 易于使用,可以通过四种方式创建和管理工作流,包括Web UI、[Python SDK](https://dolphinscheduler.apache.org/python/main/index.html)、Yaml文件和Open API
|
- 易于使用,可以通过四种方式创建和管理工作流,包括Web UI、[Python SDK](https://dolphinscheduler.apache.org/python/main/index.html)、Yaml文件和Open API
|
||||||
- 高可靠高可用,多主多从的去中心化架构,原生支持横向扩展
|
- 高可靠高可用,多主多从的去中心化架构,原生支持横向扩展。
|
||||||
- 高性能,性能比其他编排平台快N倍,每天可支持千万级任务
|
- 高性能,性能比其他编排平台快N倍,每天可支持千万级任务
|
||||||
- Cloud Native,DolphinScheduler支持编排多云/数据中心工作流,支持自定义任务类型
|
- Cloud Native,DolphinScheduler支持编排多云/数据中心工作流,支持自定义任务类型
|
||||||
- 对工作流和工作流实例(包括任务)进行版本控制
|
- 对工作流和工作流实例(包括任务)进行版本控制
|
||||||
|
|
@ -39,10 +39,10 @@ DolphinScheduler 的主要特性如下:
|
||||||
* **工作流定义**: 通过拖拉拽创建和管理工作流,轻松构建和维护复杂的工作流。
|
* **工作流定义**: 通过拖拉拽创建和管理工作流,轻松构建和维护复杂的工作流。
|
||||||

|

|
||||||
|
|
||||||
* **工作流树状图**: 抽象的树形结构可以更清晰地理解任务之间的关系
|
* **工作流树状图**: 抽象的树形结构可以更清晰的理解任务之间的关系
|
||||||

|

|
||||||
|
|
||||||
* **数据源**: 支持管理多种外部数据源,为MySQL、PostgreSQL、Hive、Trino等,并提供统一的数据访问能力。
|
* **数据源**: 管理支持多种外部数据源,为MySQL、PostgreSQL、Hive、Trino等,并提供统一的数据访问能力。
|
||||||

|

|
||||||
|
|
||||||
* **监控**:实时查看master、worker和数据库的状态,包括服务器资源使用情况和负载情况,无需登录服务器即可快速进行健康检查。
|
* **监控**:实时查看master、worker和数据库的状态,包括服务器资源使用情况和负载情况,无需登录服务器即可快速进行健康检查。
|
||||||
|
|
@ -54,22 +54,23 @@ DolphinScheduler 的主要特性如下:
|
||||||
|
|
||||||
## 参与贡献
|
## 参与贡献
|
||||||
|
|
||||||
社区欢迎大家贡献,请参考此页面了解更多:[如何贡献](docs/docs/zh/contribute/join/contribute.md),如果你是首次贡献 DolphinScheduler,在[这里](https://github.com/apache/dolphinscheduler/contribute)可以找到good first issue
|
社区欢迎大家贡献,请参考此页面了解更多:[如何贡献](docs/docs/zh/contribute/join/contribute.md),在[这里](https://github.com/apache/dolphinscheduler/contribute)可以找到good first issue
|
||||||
|
如果你是首次贡献 dolphinscheduler。
|
||||||
|
|
||||||
## 社区
|
## 社区
|
||||||
|
|
||||||
欢迎通过以方式加入社区:
|
欢迎通过以方式加入社区:
|
||||||
|
|
||||||
- 加入 [DolphinScheduler Slack](https://s.apache.org/dolphinscheduler-slack)
|
- 加入 [DolphinScheduler Slack](https://s.apache.org/dolphinscheduler-slack)
|
||||||
- 关注 [DolphinScheduler Twitter](https://twitter.com/dolphinschedule) 来获取最新消息 <!-- markdown-link-check-disable-line -->
|
- 关注 [DolphinScheduler Twitter](https://twitter.com/dolphinschedule) 来获取最新消息
|
||||||
- 订阅 DolphinScheduler 邮件列表, 用户订阅 [users@dolphinscheduler.apache.org](mailto:users-subscribe@dolphinscheduler.apache.org) 开发者请订阅 [dev@dolphinscheduler.apache.org](mailto:dev-subscribe@dolphinscheduler.apache.org)
|
- 订阅 DolphinScheduler 邮件列表, 用户订阅 users@dolphinscheduler.apache.org 开发者请订阅 dev@dolphinscheduler.apache.org
|
||||||
|
|
||||||
# Landscapes
|
# Landscapes
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
<img src="./images/cncf-landscape-white-bg.jpg" width="175" alt="cncf-landscape"/> <img src="./images/cncf-white-bg.jpg" width="200" alt="cncf-logo"/>
|
<img src="https://landscape.cncf.io/images/left-logo.svg" width="150"/> <img src="https://landscape.cncf.io/images/right-logo.svg" width="200"/>
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
DolphinScheduler enriches the <a href="https://landscape.cncf.io/?item=orchestration-management--scheduling-orchestration--dolphinscheduler">CNCF CLOUD NATIVE Landscape.</a >
|
DolphinScheduler enriches the <a href="https://landscape.cncf.io/?landscape=observability-and-analysis&license=apache-license-2-0">CNCF CLOUD NATIVE Landscape.</a >
|
||||||
|
|
||||||
</p >
|
</p >
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# DolphinScheduler for Docker and Kubernetes
|
# DolphinScheduler for Docker and Kubernetes
|
||||||
|
|
||||||
- [Start Up DolphinScheduler with Docker](https://dolphinscheduler.apache.org/en-us/docs/3.1.2/guide/start/docker)
|
* [Start Up DolphinScheduler with Docker](https://dolphinscheduler.apache.org/en-us/docs/3.1.2/guide/start/docker)
|
||||||
- [Start Up DolphinScheduler with Kubernetes](https://dolphinscheduler.apache.org/en-us/docs/3.1.2/guide/installation/kubernetes)
|
* [Start Up DolphinScheduler with Kubernetes](https://dolphinscheduler.apache.org/en-us/docs/3.1.2/guide/installation/kubernetes)
|
||||||
- [Start Up DolphinScheduler with Terraform](./terraform/README.md)
|
|
||||||
|
|
|
||||||
|
|
@ -15,11 +15,10 @@
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
#
|
#
|
||||||
HUB=ghcr.io/apache/dolphinscheduler
|
HUB=apache
|
||||||
TAG=latest
|
TAG=3.1.6
|
||||||
|
|
||||||
TZ=Asia/Shanghai
|
TZ=Asia/Shanghai
|
||||||
DATABASE=postgresql
|
DATABASE=postgresql
|
||||||
SPRING_JACKSON_TIME_ZONE=UTC
|
|
||||||
SPRING_DATASOURCE_URL=jdbc:postgresql://dolphinscheduler-postgresql:5432/dolphinscheduler
|
SPRING_DATASOURCE_URL=jdbc:postgresql://dolphinscheduler-postgresql:5432/dolphinscheduler
|
||||||
REGISTRY_ZOOKEEPER_CONNECT_STRING=dolphinscheduler-zookeeper:2181
|
REGISTRY_ZOOKEEPER_CONNECT_STRING=dolphinscheduler-zookeeper:2181
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
dolphinscheduler-postgresql:
|
dolphinscheduler-postgresql:
|
||||||
image: bitnami/postgresql:15.2.0
|
image: bitnami/postgresql:11.11.0
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
profiles: ["all", "schema"]
|
profiles: ["all", "schema"]
|
||||||
|
|
@ -37,7 +37,7 @@ services:
|
||||||
- dolphinscheduler
|
- dolphinscheduler
|
||||||
|
|
||||||
dolphinscheduler-zookeeper:
|
dolphinscheduler-zookeeper:
|
||||||
image: bitnami/zookeeper:3.7.1
|
image: bitnami/zookeeper:3.6.2
|
||||||
profiles: ["all"]
|
profiles: ["all"]
|
||||||
environment:
|
environment:
|
||||||
ALLOW_ANONYMOUS_LOGIN: "yes"
|
ALLOW_ANONYMOUS_LOGIN: "yes"
|
||||||
|
|
@ -98,9 +98,6 @@ services:
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
depends_on:
|
|
||||||
dolphinscheduler-zookeeper:
|
|
||||||
condition: service_healthy
|
|
||||||
volumes:
|
volumes:
|
||||||
- dolphinscheduler-logs:/opt/dolphinscheduler/logs
|
- dolphinscheduler-logs:/opt/dolphinscheduler/logs
|
||||||
networks:
|
networks:
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ version: "3.1"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
dolphinscheduler-postgresql:
|
dolphinscheduler-postgresql:
|
||||||
image: bitnami/postgresql:15.2.0
|
image: bitnami/postgresql:11.11.0
|
||||||
environment:
|
environment:
|
||||||
TZ: Asia/Shanghai
|
TZ: Asia/Shanghai
|
||||||
POSTGRESQL_USERNAME: root
|
POSTGRESQL_USERNAME: root
|
||||||
|
|
@ -33,7 +33,7 @@ services:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
|
||||||
dolphinscheduler-zookeeper:
|
dolphinscheduler-zookeeper:
|
||||||
image: bitnami/zookeeper:3.7.1
|
image: bitnami/zookeeper:3.6.2
|
||||||
environment:
|
environment:
|
||||||
TZ: Asia/Shanghai
|
TZ: Asia/Shanghai
|
||||||
ALLOW_ANONYMOUS_LOGIN: "yes"
|
ALLOW_ANONYMOUS_LOGIN: "yes"
|
||||||
|
|
|
||||||
|
|
@ -1,37 +0,0 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
|
||||||
# or more contributor license agreements. See the NOTICE file
|
|
||||||
# distributed with this work for additional information
|
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
|
||||||
# to you under the Apache License, Version 2.0 (the
|
|
||||||
# "License"); you may not use this file except in compliance
|
|
||||||
# with the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing,
|
|
||||||
# software distributed under the License is distributed on an
|
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
# KIND, either express or implied. See the License for the
|
|
||||||
# specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
.DS_Store
|
|
||||||
# Common VCS dirs
|
|
||||||
.git/
|
|
||||||
.gitignore
|
|
||||||
.bzr/
|
|
||||||
.bzrignore
|
|
||||||
.hg/
|
|
||||||
.hgignore
|
|
||||||
.svn/
|
|
||||||
# Common backup files
|
|
||||||
*.swp
|
|
||||||
*.bak
|
|
||||||
*.tmp
|
|
||||||
*.orig
|
|
||||||
*~
|
|
||||||
# Various IDEs
|
|
||||||
.project
|
|
||||||
.idea/
|
|
||||||
*.tmproj
|
|
||||||
.vscode/
|
|
||||||
|
|
@ -35,11 +35,11 @@ type: application
|
||||||
|
|
||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
version: 3.1.0
|
version: 3.1.6
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application.
|
# incremented each time you make changes to the application.
|
||||||
appVersion: 3.1.0
|
appVersion: 3.1.6
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: postgresql
|
- name: postgresql
|
||||||
|
|
@ -60,7 +60,3 @@ dependencies:
|
||||||
version: 9.4.1
|
version: 9.4.1
|
||||||
repository: https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
|
repository: https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
|
||||||
condition: mysql.enabled
|
condition: mysql.enabled
|
||||||
- name: minio
|
|
||||||
version: 11.10.13
|
|
||||||
repository: https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
|
|
||||||
condition: minio.enabled
|
|
||||||
|
|
|
||||||
|
|
@ -1,366 +0,0 @@
|
||||||
## About DolphinScheduler for Kubernetes
|
|
||||||
|
|
||||||
Dolphin Scheduler is a distributed and easy-to-expand visual DAG workflow scheduling system, dedicated to solving the complex dependencies in data processing, making the scheduling system out of the box for data processing.
|
|
||||||
|
|
||||||
This chart bootstraps all the components needed to run Apache DolphinScheduler on a Kubernetes Cluster using [Helm](https://helm.sh).
|
|
||||||
|
|
||||||
## QuickStart in Kubernetes
|
|
||||||
|
|
||||||
Please refer to the [Quick Start in Kubernetes](../../../docs/docs/en/guide/installation/kubernetes.md)
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Key | Type | Default | Description |
|
|
||||||
|-----|------|---------|-------------|
|
|
||||||
| alert.affinity | object | `{}` | Affinity is a group of affinity scheduling rules. If specified, the pod's scheduling constraints. More info: [node-affinity](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity) |
|
|
||||||
| alert.annotations | object | `{}` | You can use annotations to attach arbitrary non-identifying metadata to objects. Clients such as tools and libraries can retrieve this metadata. |
|
|
||||||
| alert.customizedConfig | object | `{}` | configure aligned with https://github.com/apache/dolphinscheduler/blob/dev/dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/resources/application.yaml |
|
|
||||||
| alert.enableCustomizedConfig | bool | `false` | enable configure custom config |
|
|
||||||
| alert.enabled | bool | `true` | Enable or disable the Alert-Server component |
|
|
||||||
| alert.env.JAVA_OPTS | string | `"-Xms512m -Xmx512m -Xmn256m"` | The jvm options for alert server |
|
|
||||||
| alert.livenessProbe | object | `{"enabled":true,"failureThreshold":"3","initialDelaySeconds":"30","periodSeconds":"30","successThreshold":"1","timeoutSeconds":"5"}` | Periodic probe of container liveness. Container will be restarted if the probe fails. More info: [container-probes](https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes) |
|
|
||||||
| alert.livenessProbe.enabled | bool | `true` | Turn on and off liveness probe |
|
|
||||||
| alert.livenessProbe.failureThreshold | string | `"3"` | Minimum consecutive failures for the probe |
|
|
||||||
| alert.livenessProbe.initialDelaySeconds | string | `"30"` | Delay before liveness probe is initiated |
|
|
||||||
| alert.livenessProbe.periodSeconds | string | `"30"` | How often to perform the probe |
|
|
||||||
| alert.livenessProbe.successThreshold | string | `"1"` | Minimum consecutive successes for the probe |
|
|
||||||
| alert.livenessProbe.timeoutSeconds | string | `"5"` | When the probe times out |
|
|
||||||
| alert.nodeSelector | object | `{}` | NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: [assign-pod-node](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/) |
|
|
||||||
| alert.persistentVolumeClaim | object | `{"accessModes":["ReadWriteOnce"],"enabled":false,"storage":"20Gi","storageClassName":"-"}` | PersistentVolumeClaim represents a reference to a PersistentVolumeClaim in the same namespace. More info: [persistentvolumeclaims](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims) |
|
|
||||||
| alert.persistentVolumeClaim.accessModes | list | `["ReadWriteOnce"]` | `PersistentVolumeClaim` access modes |
|
|
||||||
| alert.persistentVolumeClaim.enabled | bool | `false` | Set `alert.persistentVolumeClaim.enabled` to `true` to mount a new volume for `alert` |
|
|
||||||
| alert.persistentVolumeClaim.storage | string | `"20Gi"` | `PersistentVolumeClaim` size |
|
|
||||||
| alert.persistentVolumeClaim.storageClassName | string | `"-"` | `Alert` logs data persistent volume storage class. If set to "-", storageClassName: "", which disables dynamic provisioning |
|
|
||||||
| alert.readinessProbe | object | `{"enabled":true,"failureThreshold":"3","initialDelaySeconds":"30","periodSeconds":"30","successThreshold":"1","timeoutSeconds":"5"}` | Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. More info: [container-probes](https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes) |
|
|
||||||
| alert.readinessProbe.enabled | bool | `true` | Turn on and off readiness probe |
|
|
||||||
| alert.readinessProbe.failureThreshold | string | `"3"` | Minimum consecutive failures for the probe |
|
|
||||||
| alert.readinessProbe.initialDelaySeconds | string | `"30"` | Delay before readiness probe is initiated |
|
|
||||||
| alert.readinessProbe.periodSeconds | string | `"30"` | How often to perform the probe |
|
|
||||||
| alert.readinessProbe.successThreshold | string | `"1"` | Minimum consecutive successes for the probe |
|
|
||||||
| alert.readinessProbe.timeoutSeconds | string | `"5"` | When the probe times out |
|
|
||||||
| alert.replicas | int | `1` | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. |
|
|
||||||
| alert.resources | object | `{}` | Compute Resources required by this container. More info: [manage-resources-containers](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) |
|
|
||||||
| alert.service.annotations | object | `{}` | annotations may need to be set when want to scrapy metrics by prometheus but not install prometheus operator |
|
|
||||||
| alert.service.serviceMonitor | object | `{"annotations":{},"enabled":false,"interval":"15s","labels":{},"path":"/actuator/prometheus"}` | serviceMonitor for prometheus operator |
|
|
||||||
| alert.service.serviceMonitor.annotations | object | `{}` | serviceMonitor.annotations ServiceMonitor annotations |
|
|
||||||
| alert.service.serviceMonitor.enabled | bool | `false` | Enable or disable alert-server serviceMonitor |
|
|
||||||
| alert.service.serviceMonitor.interval | string | `"15s"` | serviceMonitor.interval interval at which metrics should be scraped |
|
|
||||||
| alert.service.serviceMonitor.labels | object | `{}` | serviceMonitor.labels ServiceMonitor extra labels |
|
|
||||||
| alert.service.serviceMonitor.path | string | `"/actuator/prometheus"` | serviceMonitor.path path of the metrics endpoint |
|
|
||||||
| alert.strategy | object | `{"rollingUpdate":{"maxSurge":"25%","maxUnavailable":"25%"},"type":"RollingUpdate"}` | The deployment strategy to use to replace existing pods with new ones. |
|
|
||||||
| alert.strategy.rollingUpdate.maxSurge | string | `"25%"` | The maximum number of pods that can be scheduled above the desired number of pods |
|
|
||||||
| alert.strategy.rollingUpdate.maxUnavailable | string | `"25%"` | The maximum number of pods that can be unavailable during the update |
|
|
||||||
| alert.strategy.type | string | `"RollingUpdate"` | Type of deployment. Can be "Recreate" or "RollingUpdate" |
|
|
||||||
| alert.tolerations | list | `[]` | Tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. |
|
|
||||||
| api.affinity | object | `{}` | Affinity is a group of affinity scheduling rules. If specified, the pod's scheduling constraints. More info: [node-affinity](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity) |
|
|
||||||
| api.annotations | object | `{}` | You can use annotations to attach arbitrary non-identifying metadata to objects. Clients such as tools and libraries can retrieve this metadata. |
|
|
||||||
| api.customizedConfig | object | `{}` | configure aligned with https://github.com/apache/dolphinscheduler/blob/dev/dolphinscheduler-api/src/main/resources/application.yaml |
|
|
||||||
| api.enableCustomizedConfig | bool | `false` | enable configure custom config |
|
|
||||||
| api.enabled | bool | `true` | Enable or disable the API-Server component |
|
|
||||||
| api.env.JAVA_OPTS | string | `"-Xms512m -Xmx512m -Xmn256m"` | The jvm options for api server |
|
|
||||||
| api.livenessProbe | object | `{"enabled":true,"failureThreshold":"3","initialDelaySeconds":"30","periodSeconds":"30","successThreshold":"1","timeoutSeconds":"5"}` | Periodic probe of container liveness. Container will be restarted if the probe fails. More info: [container-probes](https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes) |
|
|
||||||
| api.livenessProbe.enabled | bool | `true` | Turn on and off liveness probe |
|
|
||||||
| api.livenessProbe.failureThreshold | string | `"3"` | Minimum consecutive failures for the probe |
|
|
||||||
| api.livenessProbe.initialDelaySeconds | string | `"30"` | Delay before liveness probe is initiated |
|
|
||||||
| api.livenessProbe.periodSeconds | string | `"30"` | How often to perform the probe |
|
|
||||||
| api.livenessProbe.successThreshold | string | `"1"` | Minimum consecutive successes for the probe |
|
|
||||||
| api.livenessProbe.timeoutSeconds | string | `"5"` | When the probe times out |
|
|
||||||
| api.nodeSelector | object | `{}` | NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: [assign-pod-node](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/) |
|
|
||||||
| api.persistentVolumeClaim | object | `{"accessModes":["ReadWriteOnce"],"enabled":false,"storage":"20Gi","storageClassName":"-"}` | PersistentVolumeClaim represents a reference to a PersistentVolumeClaim in the same namespace. More info: [persistentvolumeclaims](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims) |
|
|
||||||
| api.persistentVolumeClaim.accessModes | list | `["ReadWriteOnce"]` | `PersistentVolumeClaim` access modes |
|
|
||||||
| api.persistentVolumeClaim.enabled | bool | `false` | Set `api.persistentVolumeClaim.enabled` to `true` to mount a new volume for `api` |
|
|
||||||
| api.persistentVolumeClaim.storage | string | `"20Gi"` | `PersistentVolumeClaim` size |
|
|
||||||
| api.persistentVolumeClaim.storageClassName | string | `"-"` | `api` logs data persistent volume storage class. If set to "-", storageClassName: "", which disables dynamic provisioning |
|
|
||||||
| api.readinessProbe | object | `{"enabled":true,"failureThreshold":"3","initialDelaySeconds":"30","periodSeconds":"30","successThreshold":"1","timeoutSeconds":"5"}` | Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. More info: [container-probes](https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes) |
|
|
||||||
| api.readinessProbe.enabled | bool | `true` | Turn on and off readiness probe |
|
|
||||||
| api.readinessProbe.failureThreshold | string | `"3"` | Minimum consecutive failures for the probe |
|
|
||||||
| api.readinessProbe.initialDelaySeconds | string | `"30"` | Delay before readiness probe is initiated |
|
|
||||||
| api.readinessProbe.periodSeconds | string | `"30"` | How often to perform the probe |
|
|
||||||
| api.readinessProbe.successThreshold | string | `"1"` | Minimum consecutive successes for the probe |
|
|
||||||
| api.readinessProbe.timeoutSeconds | string | `"5"` | When the probe times out |
|
|
||||||
| api.replicas | string | `"1"` | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. |
|
|
||||||
| api.resources | object | `{}` | Compute Resources required by this container. More info: [manage-resources-containers](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) |
|
|
||||||
| api.service.annotations | object | `{}` | annotations may need to be set when service.type is LoadBalancer service.beta.kubernetes.io/aws-load-balancer-ssl-cert: arn:aws:acm:us-east-1:EXAMPLE_CERT |
|
|
||||||
| api.service.clusterIP | string | `""` | clusterIP is the IP address of the service and is usually assigned randomly by the master |
|
|
||||||
| api.service.externalIPs | list | `[]` | externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service |
|
|
||||||
| api.service.externalName | string | `""` | externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service, requires Type to be ExternalName |
|
|
||||||
| api.service.loadBalancerIP | string | `""` | loadBalancerIP when service.type is LoadBalancer. LoadBalancer will get created with the IP specified in this field |
|
|
||||||
| api.service.nodePort | string | `""` | nodePort is the port on each node on which this api service is exposed when type=NodePort |
|
|
||||||
| api.service.pythonNodePort | string | `""` | pythonNodePort is the port on each node on which this python api service is exposed when type=NodePort |
|
|
||||||
| api.service.serviceMonitor | object | `{"annotations":{},"enabled":false,"interval":"15s","labels":{},"path":"/dolphinscheduler/actuator/prometheus"}` | serviceMonitor for prometheus operator |
|
|
||||||
| api.service.serviceMonitor.annotations | object | `{}` | serviceMonitor.annotations ServiceMonitor annotations |
|
|
||||||
| api.service.serviceMonitor.enabled | bool | `false` | Enable or disable api-server serviceMonitor |
|
|
||||||
| api.service.serviceMonitor.interval | string | `"15s"` | serviceMonitor.interval interval at which metrics should be scraped |
|
|
||||||
| api.service.serviceMonitor.labels | object | `{}` | serviceMonitor.labels ServiceMonitor extra labels |
|
|
||||||
| api.service.serviceMonitor.path | string | `"/dolphinscheduler/actuator/prometheus"` | serviceMonitor.path path of the metrics endpoint |
|
|
||||||
| api.service.type | string | `"ClusterIP"` | type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer |
|
|
||||||
| api.strategy | object | `{"rollingUpdate":{"maxSurge":"25%","maxUnavailable":"25%"},"type":"RollingUpdate"}` | The deployment strategy to use to replace existing pods with new ones. |
|
|
||||||
| api.strategy.rollingUpdate.maxSurge | string | `"25%"` | The maximum number of pods that can be scheduled above the desired number of pods |
|
|
||||||
| api.strategy.rollingUpdate.maxUnavailable | string | `"25%"` | The maximum number of pods that can be unavailable during the update |
|
|
||||||
| api.strategy.type | string | `"RollingUpdate"` | Type of deployment. Can be "Recreate" or "RollingUpdate" |
|
|
||||||
| api.taskTypeFilter.enabled | bool | `false` | Enable or disable the task type filter. If set to true, the API-Server will return tasks of a specific type set in api.taskTypeFilter.task Note: This feature only filters tasks to return a specific type on the WebUI. However, you can still create any task that DolphinScheduler supports via the API. |
|
|
||||||
| api.taskTypeFilter.task | object | `{}` | ref: [task-type-config.yaml](https://github.com/apache/dolphinscheduler/blob/dev/dolphinscheduler-api/src/main/resources/task-type-config.yaml) |
|
|
||||||
| api.tolerations | list | `[]` | Tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. |
|
|
||||||
| common.configmap.DATAX_LAUNCHER | string | `"/opt/soft/datax/bin/datax.py"` | Set `DATAX_LAUNCHER` for DolphinScheduler's task environment |
|
|
||||||
| common.configmap.DATA_BASEDIR_PATH | string | `"/tmp/dolphinscheduler"` | User data directory path, self configuration, please make sure the directory exists and have read write permissions |
|
|
||||||
| common.configmap.DOLPHINSCHEDULER_OPTS | string | `""` | The jvm options for dolphinscheduler, suitable for all servers |
|
|
||||||
| common.configmap.FLINK_HOME | string | `"/opt/soft/flink"` | Set `FLINK_HOME` for DolphinScheduler's task environment |
|
|
||||||
| common.configmap.HADOOP_CONF_DIR | string | `"/opt/soft/hadoop/etc/hadoop"` | Set `HADOOP_CONF_DIR` for DolphinScheduler's task environment |
|
|
||||||
| common.configmap.HADOOP_HOME | string | `"/opt/soft/hadoop"` | Set `HADOOP_HOME` for DolphinScheduler's task environment |
|
|
||||||
| common.configmap.HIVE_HOME | string | `"/opt/soft/hive"` | Set `HIVE_HOME` for DolphinScheduler's task environment |
|
|
||||||
| common.configmap.JAVA_HOME | string | `"/opt/java/openjdk"` | Set `JAVA_HOME` for DolphinScheduler's task environment |
|
|
||||||
| common.configmap.PYTHON_LAUNCHER | string | `"/usr/bin/python/bin/python3"` | Set `PYTHON_LAUNCHER` for DolphinScheduler's task environment |
|
|
||||||
| common.configmap.RESOURCE_UPLOAD_PATH | string | `"/dolphinscheduler"` | Resource store on HDFS/S3 path, please make sure the directory exists on hdfs and have read write permissions |
|
|
||||||
| common.configmap.SPARK_HOME | string | `"/opt/soft/spark"` | Set `SPARK_HOME` for DolphinScheduler's task environment |
|
|
||||||
| common.fsFileResourcePersistence.accessModes | list | `["ReadWriteMany"]` | `PersistentVolumeClaim` access modes, must be `ReadWriteMany` |
|
|
||||||
| common.fsFileResourcePersistence.enabled | bool | `false` | Set `common.fsFileResourcePersistence.enabled` to `true` to mount a new file resource volume for `api` and `worker` |
|
|
||||||
| common.fsFileResourcePersistence.storage | string | `"20Gi"` | `PersistentVolumeClaim` size |
|
|
||||||
| common.fsFileResourcePersistence.storageClassName | string | `"-"` | Resource persistent volume storage class, must support the access mode: `ReadWriteMany` |
|
|
||||||
| common.sharedStoragePersistence.accessModes | list | `["ReadWriteMany"]` | `PersistentVolumeClaim` access modes, must be `ReadWriteMany` |
|
|
||||||
| common.sharedStoragePersistence.enabled | bool | `false` | Set `common.sharedStoragePersistence.enabled` to `true` to mount a shared storage volume for Hadoop, Spark binary and etc |
|
|
||||||
| common.sharedStoragePersistence.mountPath | string | `"/opt/soft"` | The mount path for the shared storage volume |
|
|
||||||
| common.sharedStoragePersistence.storage | string | `"20Gi"` | `PersistentVolumeClaim` size |
|
|
||||||
| common.sharedStoragePersistence.storageClassName | string | `"-"` | Shared Storage persistent volume storage class, must support the access mode: ReadWriteMany |
|
|
||||||
| conf.auto | bool | `false` | auto restart, if true, all components will be restarted automatically after the common configuration is updated. if false, you need to restart the components manually. default is false |
|
|
||||||
| conf.common."alert.rpc.port" | int | `50052` | rpc port |
|
|
||||||
| conf.common."appId.collect" | string | `"log"` | way to collect applicationId: log, aop |
|
|
||||||
| conf.common."aws.credentials.provider.type" | string | `"AWSStaticCredentialsProvider"` | |
|
|
||||||
| conf.common."aws.s3.access.key.id" | string | `"minioadmin"` | The AWS access key. if resource.storage.type=S3, and credentials.provider.type is AWSStaticCredentialsProvider. This configuration is required |
|
|
||||||
| conf.common."aws.s3.access.key.secret" | string | `"minioadmin"` | The AWS secret access key. if resource.storage.type=S3, and credentials.provider.type is AWSStaticCredentialsProvider. This configuration is required |
|
|
||||||
| conf.common."aws.s3.bucket.name" | string | `"dolphinscheduler"` | The name of the bucket. You need to create them by yourself. Otherwise, the system cannot start. All buckets in Amazon S3 share a single namespace; ensure the bucket is given a unique name. |
|
|
||||||
| conf.common."aws.s3.endpoint" | string | `"http://minio:9000"` | You need to set this parameter when private cloud s3. If S3 uses public cloud, you only need to set resource.aws.region or set to the endpoint of a public cloud such as S3.cn-north-1.amazonaws.com.cn |
|
|
||||||
| conf.common."aws.s3.region" | string | `"ca-central-1"` | The AWS Region to use. if resource.storage.type=S3, This configuration is required |
|
|
||||||
| conf.common."conda.path" | string | `"/opt/anaconda3/etc/profile.d/conda.sh"` | set path of conda.sh |
|
|
||||||
| conf.common."data-quality.jar.dir" | string | `nil` | data quality option |
|
|
||||||
| conf.common."data.basedir.path" | string | `"/tmp/dolphinscheduler"` | user data local directory path, please make sure the directory exists and have read write permissions |
|
|
||||||
| conf.common."datasource.encryption.enable" | bool | `false` | datasource encryption enable |
|
|
||||||
| conf.common."datasource.encryption.salt" | string | `"!@#$%^&*"` | datasource encryption salt |
|
|
||||||
| conf.common."development.state" | bool | `false` | development state |
|
|
||||||
| conf.common."hadoop.security.authentication.startup.state" | bool | `false` | whether to startup kerberos |
|
|
||||||
| conf.common."java.security.krb5.conf.path" | string | `"/opt/krb5.conf"` | java.security.krb5.conf path |
|
|
||||||
| conf.common."kerberos.expire.time" | int | `2` | kerberos expire time, the unit is hour |
|
|
||||||
| conf.common."login.user.keytab.path" | string | `"/opt/hdfs.headless.keytab"` | login user from keytab path |
|
|
||||||
| conf.common."login.user.keytab.username" | string | `"hdfs-mycluster@ESZ.COM"` | login user from keytab username |
|
|
||||||
| conf.common."ml.mlflow.preset_repository" | string | `"https://github.com/apache/dolphinscheduler-mlflow"` | mlflow task plugin preset repository |
|
|
||||||
| conf.common."ml.mlflow.preset_repository_version" | string | `"main"` | mlflow task plugin preset repository version |
|
|
||||||
| conf.common."resource.alibaba.cloud.access.key.id" | string | `"<your-access-key-id>"` | alibaba cloud access key id, required if you set resource.storage.type=OSS |
|
|
||||||
| conf.common."resource.alibaba.cloud.access.key.secret" | string | `"<your-access-key-secret>"` | alibaba cloud access key secret, required if you set resource.storage.type=OSS |
|
|
||||||
| conf.common."resource.alibaba.cloud.oss.bucket.name" | string | `"dolphinscheduler"` | oss bucket name, required if you set resource.storage.type=OSS |
|
|
||||||
| conf.common."resource.alibaba.cloud.oss.endpoint" | string | `"https://oss-cn-hangzhou.aliyuncs.com"` | oss bucket endpoint, required if you set resource.storage.type=OSS |
|
|
||||||
| conf.common."resource.alibaba.cloud.region" | string | `"cn-hangzhou"` | alibaba cloud region, required if you set resource.storage.type=OSS |
|
|
||||||
| conf.common."resource.azure.client.id" | string | `"minioadmin"` | azure storage account name, required if you set resource.storage.type=ABS |
|
|
||||||
| conf.common."resource.azure.client.secret" | string | `"minioadmin"` | azure storage account key, required if you set resource.storage.type=ABS |
|
|
||||||
| conf.common."resource.azure.subId" | string | `"minioadmin"` | azure storage subId, required if you set resource.storage.type=ABS |
|
|
||||||
| conf.common."resource.azure.tenant.id" | string | `"minioadmin"` | azure storage tenantId, required if you set resource.storage.type=ABS |
|
|
||||||
| conf.common."resource.hdfs.fs.defaultFS" | string | `"hdfs://mycluster:8020"` | if resource.storage.type=S3, the value like: s3a://dolphinscheduler; if resource.storage.type=HDFS and namenode HA is enabled, you need to copy core-site.xml and hdfs-site.xml to conf dir |
|
|
||||||
| conf.common."resource.hdfs.root.user" | string | `"hdfs"` | if resource.storage.type=HDFS, the user must have the permission to create directories under the HDFS root path |
|
|
||||||
| conf.common."resource.manager.httpaddress.port" | int | `8088` | resourcemanager port, the default value is 8088 if not specified |
|
|
||||||
| conf.common."resource.storage.type" | string | `"S3"` | resource storage type: HDFS, S3, OSS, GCS, ABS, NONE |
|
|
||||||
| conf.common."resource.storage.upload.base.path" | string | `"/dolphinscheduler"` | resource store on HDFS/S3 path, resource file will store to this base path, self configuration, please make sure the directory exists on hdfs and have read write permissions. "/dolphinscheduler" is recommended |
|
|
||||||
| conf.common."sudo.enable" | bool | `true` | use sudo or not, if set true, executing user is tenant user and deploy user needs sudo permissions; if set false, executing user is the deploy user and doesn't need sudo permissions |
|
|
||||||
| conf.common."support.hive.oneSession" | bool | `false` | Whether hive SQL is executed in the same session |
|
|
||||||
| conf.common."task.resource.limit.state" | bool | `false` | Task resource limit state |
|
|
||||||
| conf.common."yarn.application.status.address" | string | `"http://ds1:%s/ws/v1/cluster/apps/%s"` | if resourcemanager HA is enabled or not use resourcemanager, please keep the default value; If resourcemanager is single, you only need to replace ds1 to actual resourcemanager hostname |
|
|
||||||
| conf.common."yarn.job.history.status.address" | string | `"http://ds1:19888/ws/v1/history/mapreduce/jobs/%s"` | job history status url when application number threshold is reached(default 10000, maybe it was set to 1000) |
|
|
||||||
| conf.common."yarn.resourcemanager.ha.rm.ids" | string | `"192.168.xx.xx,192.168.xx.xx"` | if resourcemanager HA is enabled, please set the HA IPs; if resourcemanager is single, keep this value empty |
|
|
||||||
| datasource.profile | string | `"postgresql"` | The profile of datasource |
|
|
||||||
| externalDatabase.database | string | `"dolphinscheduler"` | The database of external database |
|
|
||||||
| externalDatabase.driverClassName | string | `"org.postgresql.Driver"` | The driverClassName of external database |
|
|
||||||
| externalDatabase.enabled | bool | `false` | If exists external database, and set postgresql.enable value to false. external database will be used, otherwise Dolphinscheduler's internal database will be used. |
|
|
||||||
| externalDatabase.host | string | `"localhost"` | The host of external database |
|
|
||||||
| externalDatabase.params | string | `"characterEncoding=utf8"` | The params of external database |
|
|
||||||
| externalDatabase.password | string | `"root"` | The password of external database |
|
|
||||||
| externalDatabase.port | string | `"5432"` | The port of external database |
|
|
||||||
| externalDatabase.type | string | `"postgresql"` | The type of external database, supported types: postgresql, mysql |
|
|
||||||
| externalDatabase.username | string | `"root"` | The username of external database |
|
|
||||||
| externalRegistry.registryPluginName | string | `"zookeeper"` | If exists external registry and set `zookeeper.enable` && `registryEtcd.enabled` && `registryJdbc.enabled` to false, specify the external registry plugin name |
|
|
||||||
| externalRegistry.registryServers | string | `"127.0.0.1:2181"` | If exists external registry and set `zookeeper.enable` && `registryEtcd.enabled` && `registryJdbc.enabled` to false, specify the external registry servers |
|
|
||||||
| image.alert | string | `"dolphinscheduler-alert-server"` | alert-server image |
|
|
||||||
| image.api | string | `"dolphinscheduler-api"` | api-server image |
|
|
||||||
| image.master | string | `"dolphinscheduler-master"` | master image |
|
|
||||||
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy. Options: Always, Never, IfNotPresent |
|
|
||||||
| image.pullSecret | string | `""` | Specify a imagePullSecrets |
|
|
||||||
| image.registry | string | `"apache"` | Docker image repository for the DolphinScheduler |
|
|
||||||
| image.tag | string | `"latest"` | Docker image version for the DolphinScheduler |
|
|
||||||
| image.tools | string | `"dolphinscheduler-tools"` | tools image |
|
|
||||||
| image.worker | string | `"dolphinscheduler-worker"` | worker image |
|
|
||||||
| ingress.annotations | object | `{}` | Ingress annotations |
|
|
||||||
| ingress.enabled | bool | `false` | Enable ingress |
|
|
||||||
| ingress.host | string | `"dolphinscheduler.org"` | Ingress host |
|
|
||||||
| ingress.path | string | `"/dolphinscheduler"` | Ingress path |
|
|
||||||
| ingress.tls.enabled | bool | `false` | Enable ingress tls |
|
|
||||||
| ingress.tls.secretName | string | `"dolphinscheduler-tls"` | Ingress tls secret name |
|
|
||||||
| initImage | object | `{"busybox":"busybox:1.30.1","pullPolicy":"IfNotPresent"}` | Used to detect whether dolphinscheduler dependent services such as database are ready |
|
|
||||||
| initImage.busybox | string | `"busybox:1.30.1"` | Specify initImage repository |
|
|
||||||
| initImage.pullPolicy | string | `"IfNotPresent"` | Image pull policy. Options: Always, Never, IfNotPresent |
|
|
||||||
| master.affinity | object | `{}` | Affinity is a group of affinity scheduling rules. If specified, the pod's scheduling constraints. More info: [node-affinity](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity) |
|
|
||||||
| master.annotations | object | `{}` | You can use annotations to attach arbitrary non-identifying metadata to objects. Clients such as tools and libraries can retrieve this metadata. |
|
|
||||||
| master.customizedConfig | object | `{}` | configure aligned with https://github.com/apache/dolphinscheduler/blob/dev/dolphinscheduler-master/src/main/resources/application.yaml |
|
|
||||||
| master.enableCustomizedConfig | bool | `false` | enable configure custom config |
|
|
||||||
| master.enabled | bool | `true` | Enable or disable the Master component |
|
|
||||||
| master.env.JAVA_OPTS | string | `"-Xms1g -Xmx1g -Xmn512m"` | The jvm options for master server |
|
|
||||||
| master.env.MASTER_DISPATCH_TASK_NUM | string | `"3"` | Master dispatch task number per batch |
|
|
||||||
| master.env.MASTER_EXEC_TASK_NUM | string | `"20"` | Master execute task number in parallel per process instance |
|
|
||||||
| master.env.MASTER_EXEC_THREADS | string | `"100"` | Master execute thread number to limit process instances |
|
|
||||||
| master.env.MASTER_FAILOVER_INTERVAL | string | `"10m"` | Master failover interval, the unit is minute |
|
|
||||||
| master.env.MASTER_HEARTBEAT_ERROR_THRESHOLD | string | `"5"` | Master heartbeat error threshold |
|
|
||||||
| master.env.MASTER_HOST_SELECTOR | string | `"LowerWeight"` | Master host selector to select a suitable worker, optional values include Random, RoundRobin, LowerWeight |
|
|
||||||
| master.env.MASTER_KILL_APPLICATION_WHEN_HANDLE_FAILOVER | string | `"true"` | Master kill application when handle failover |
|
|
||||||
| master.env.MASTER_MAX_HEARTBEAT_INTERVAL | string | `"10s"` | Master max heartbeat interval |
|
|
||||||
| master.env.MASTER_SERVER_LOAD_PROTECTION_ENABLED | bool | `false` | If set true, will open master overload protection |
|
|
||||||
| master.env.MASTER_SERVER_LOAD_PROTECTION_MAX_DISK_USAGE_PERCENTAGE_THRESHOLDS | float | `0.7` | Master max disk usage , when the master's disk usage is smaller then this value, master server can execute workflow. |
|
|
||||||
| master.env.MASTER_SERVER_LOAD_PROTECTION_MAX_JVM_CPU_USAGE_PERCENTAGE_THRESHOLDS | float | `0.7` | Master max jvm cpu usage, when the master's jvm cpu usage is smaller then this value, master server can execute workflow. |
|
|
||||||
| master.env.MASTER_SERVER_LOAD_PROTECTION_MAX_SYSTEM_CPU_USAGE_PERCENTAGE_THRESHOLDS | float | `0.7` | Master max system cpu usage, when the master's system cpu usage is smaller then this value, master server can execute workflow. |
|
|
||||||
| master.env.MASTER_SERVER_LOAD_PROTECTION_MAX_SYSTEM_MEMORY_USAGE_PERCENTAGE_THRESHOLDS | float | `0.7` | Master max System memory usage , when the master's system memory usage is smaller then this value, master server can execute workflow. |
|
|
||||||
| master.env.MASTER_STATE_WHEEL_INTERVAL | string | `"5s"` | master state wheel interval, the unit is second |
|
|
||||||
| master.env.MASTER_TASK_COMMIT_INTERVAL | string | `"1s"` | master commit task interval, the unit is second |
|
|
||||||
| master.env.MASTER_TASK_COMMIT_RETRYTIMES | string | `"5"` | Master commit task retry times |
|
|
||||||
| master.livenessProbe | object | `{"enabled":true,"failureThreshold":"3","initialDelaySeconds":"30","periodSeconds":"30","successThreshold":"1","timeoutSeconds":"5"}` | Periodic probe of container liveness. Container will be restarted if the probe fails. More info: [container-probes](https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes) |
|
|
||||||
| master.livenessProbe.enabled | bool | `true` | Turn on and off liveness probe |
|
|
||||||
| master.livenessProbe.failureThreshold | string | `"3"` | Minimum consecutive failures for the probe |
|
|
||||||
| master.livenessProbe.initialDelaySeconds | string | `"30"` | Delay before liveness probe is initiated |
|
|
||||||
| master.livenessProbe.periodSeconds | string | `"30"` | How often to perform the probe |
|
|
||||||
| master.livenessProbe.successThreshold | string | `"1"` | Minimum consecutive successes for the probe |
|
|
||||||
| master.livenessProbe.timeoutSeconds | string | `"5"` | When the probe times out |
|
|
||||||
| master.nodeSelector | object | `{}` | NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: [assign-pod-node](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/) |
|
|
||||||
| master.persistentVolumeClaim | object | `{"accessModes":["ReadWriteOnce"],"enabled":false,"storage":"20Gi","storageClassName":"-"}` | PersistentVolumeClaim represents a reference to a PersistentVolumeClaim in the same namespace. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. |
|
|
||||||
| master.persistentVolumeClaim.accessModes | list | `["ReadWriteOnce"]` | `PersistentVolumeClaim` access modes |
|
|
||||||
| master.persistentVolumeClaim.enabled | bool | `false` | Set `master.persistentVolumeClaim.enabled` to `true` to mount a new volume for `master` |
|
|
||||||
| master.persistentVolumeClaim.storage | string | `"20Gi"` | `PersistentVolumeClaim` size |
|
|
||||||
| master.persistentVolumeClaim.storageClassName | string | `"-"` | `Master` logs data persistent volume storage class. If set to "-", storageClassName: "", which disables dynamic provisioning |
|
|
||||||
| master.podManagementPolicy | string | `"Parallel"` | PodManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. |
|
|
||||||
| master.readinessProbe | object | `{"enabled":true,"failureThreshold":"3","initialDelaySeconds":"30","periodSeconds":"30","successThreshold":"1","timeoutSeconds":"5"}` | Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. More info: [container-probes](https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes) |
|
|
||||||
| master.readinessProbe.enabled | bool | `true` | Turn on and off readiness probe |
|
|
||||||
| master.readinessProbe.failureThreshold | string | `"3"` | Minimum consecutive failures for the probe |
|
|
||||||
| master.readinessProbe.initialDelaySeconds | string | `"30"` | Delay before readiness probe is initiated |
|
|
||||||
| master.readinessProbe.periodSeconds | string | `"30"` | How often to perform the probe |
|
|
||||||
| master.readinessProbe.successThreshold | string | `"1"` | Minimum consecutive successes for the probe |
|
|
||||||
| master.readinessProbe.timeoutSeconds | string | `"5"` | When the probe times out |
|
|
||||||
| master.replicas | string | `"3"` | Replicas is the desired number of replicas of the given Template. |
|
|
||||||
| master.resources | object | `{}` | Compute Resources required by this container. More info: [manage-resources-containers](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) |
|
|
||||||
| master.service.annotations | object | `{}` | annotations may need to be set when want to scrapy metrics by prometheus but not install prometheus operator |
|
|
||||||
| master.service.serviceMonitor | object | `{"annotations":{},"enabled":false,"interval":"15s","labels":{},"path":"/actuator/prometheus"}` | serviceMonitor for prometheus operator |
|
|
||||||
| master.service.serviceMonitor.annotations | object | `{}` | serviceMonitor.annotations ServiceMonitor annotations |
|
|
||||||
| master.service.serviceMonitor.enabled | bool | `false` | Enable or disable master serviceMonitor |
|
|
||||||
| master.service.serviceMonitor.interval | string | `"15s"` | serviceMonitor.interval interval at which metrics should be scraped |
|
|
||||||
| master.service.serviceMonitor.labels | object | `{}` | serviceMonitor.labels ServiceMonitor extra labels |
|
|
||||||
| master.service.serviceMonitor.path | string | `"/actuator/prometheus"` | serviceMonitor.path path of the metrics endpoint |
|
|
||||||
| master.tolerations | list | `[]` | Tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. |
|
|
||||||
| minio.auth.rootPassword | string | `"minioadmin"` | minio password |
|
|
||||||
| minio.auth.rootUser | string | `"minioadmin"` | minio username |
|
|
||||||
| minio.defaultBuckets | string | `"dolphinscheduler"` | minio default buckets |
|
|
||||||
| minio.enabled | bool | `true` | Deploy minio and configure it as the default storage for DolphinScheduler, note this is for demo only, not for production. |
|
|
||||||
| minio.persistence.enabled | bool | `false` | Set minio.persistence.enabled to true to mount a new volume for internal minio |
|
|
||||||
| mysql.auth.database | string | `"dolphinscheduler"` | mysql database |
|
|
||||||
| mysql.auth.params | string | `"characterEncoding=utf8"` | mysql params |
|
|
||||||
| mysql.auth.password | string | `"ds"` | mysql password |
|
|
||||||
| mysql.auth.username | string | `"ds"` | mysql username |
|
|
||||||
| mysql.driverClassName | string | `"com.mysql.cj.jdbc.Driver"` | mysql driverClassName |
|
|
||||||
| mysql.enabled | bool | `false` | If not exists external MySQL, by default, the DolphinScheduler will use a internal MySQL |
|
|
||||||
| mysql.primary.persistence.enabled | bool | `false` | Set mysql.primary.persistence.enabled to true to mount a new volume for internal MySQL |
|
|
||||||
| mysql.primary.persistence.size | string | `"20Gi"` | `PersistentVolumeClaim` size |
|
|
||||||
| mysql.primary.persistence.storageClass | string | `"-"` | MySQL data persistent volume storage class. If set to "-", storageClassName: "", which disables dynamic provisioning |
|
|
||||||
| postgresql.driverClassName | string | `"org.postgresql.Driver"` | The driverClassName for internal PostgreSQL |
|
|
||||||
| postgresql.enabled | bool | `true` | If not exists external PostgreSQL, by default, the DolphinScheduler will use a internal PostgreSQL |
|
|
||||||
| postgresql.params | string | `"characterEncoding=utf8"` | The params for internal PostgreSQL |
|
|
||||||
| postgresql.persistence.enabled | bool | `false` | Set postgresql.persistence.enabled to true to mount a new volume for internal PostgreSQL |
|
|
||||||
| postgresql.persistence.size | string | `"20Gi"` | `PersistentVolumeClaim` size |
|
|
||||||
| postgresql.persistence.storageClass | string | `"-"` | PostgreSQL data persistent volume storage class. If set to "-", storageClassName: "", which disables dynamic provisioning |
|
|
||||||
| postgresql.postgresqlDatabase | string | `"dolphinscheduler"` | The database for internal PostgreSQL |
|
|
||||||
| postgresql.postgresqlPassword | string | `"root"` | The password for internal PostgreSQL |
|
|
||||||
| postgresql.postgresqlUsername | string | `"root"` | The username for internal PostgreSQL |
|
|
||||||
| registryEtcd.authority | string | `""` | Etcd authority |
|
|
||||||
| registryEtcd.enabled | bool | `false` | If you want to use Etcd for your registry center, change this value to true. And set zookeeper.enabled to false |
|
|
||||||
| registryEtcd.endpoints | string | `""` | Etcd endpoints |
|
|
||||||
| registryEtcd.namespace | string | `"dolphinscheduler"` | Etcd namespace |
|
|
||||||
| registryEtcd.passWord | string | `""` | Etcd passWord |
|
|
||||||
| registryEtcd.ssl.certFile | string | `"etcd-certs/ca.crt"` | CertFile file path |
|
|
||||||
| registryEtcd.ssl.enabled | bool | `false` | If your Etcd server has configured with ssl, change this value to true. About certification files you can see [here](https://github.com/etcd-io/jetcd/blob/main/docs/SslConfig.md) for how to convert. |
|
|
||||||
| registryEtcd.ssl.keyCertChainFile | string | `"etcd-certs/client.crt"` | keyCertChainFile file path |
|
|
||||||
| registryEtcd.ssl.keyFile | string | `"etcd-certs/client.pem"` | keyFile file path |
|
|
||||||
| registryEtcd.user | string | `""` | Etcd user |
|
|
||||||
| registryJdbc.enabled | bool | `false` | If you want to use JDbc for your registry center, change this value to true. And set zookeeper.enabled and registryEtcd.enabled to false |
|
|
||||||
| registryJdbc.hikariConfig.driverClassName | string | `"com.mysql.cj.jdbc.Driver"` | Default use same Dolphinscheduler's database if you don't change this value. If you set this value, Registry jdbc's database type will use it |
|
|
||||||
| registryJdbc.hikariConfig.enabled | bool | `false` | Default use same Dolphinscheduler's database, if you want to use other database please change `enabled` to `true` and change other configs |
|
|
||||||
| registryJdbc.hikariConfig.jdbcurl | string | `"jdbc:mysql://"` | Default use same Dolphinscheduler's database if you don't change this value. If you set this value, Registry jdbc's database type will use it |
|
|
||||||
| registryJdbc.hikariConfig.password | string | `""` | Default use same Dolphinscheduler's database if you don't change this value. If you set this value, Registry jdbc's database type will use it |
|
|
||||||
| registryJdbc.hikariConfig.username | string | `""` | Default use same Dolphinscheduler's database if you don't change this value. If you set this value, Registry jdbc's database type will use it |
|
|
||||||
| registryJdbc.termExpireTimes | int | `3` | Used to calculate the expire time |
|
|
||||||
| registryJdbc.termRefreshInterval | string | `"2s"` | Used to schedule refresh the ephemeral data/ lock |
|
|
||||||
| security.authentication.ldap.basedn | string | `"dc=example,dc=com"` | LDAP base dn |
|
|
||||||
| security.authentication.ldap.password | string | `"password"` | LDAP password |
|
|
||||||
| security.authentication.ldap.ssl.enable | bool | `false` | LDAP ssl switch |
|
|
||||||
| security.authentication.ldap.ssl.jksbase64content | string | `""` | LDAP jks file base64 content. If you use macOS, please run `base64 -b 0 -i /path/to/your.jks`. If you use Linux, please run `base64 -w 0 /path/to/your.jks`. If you use Windows, please run `certutil -f -encode /path/to/your.jks`. Then copy the base64 content to below field in one line |
|
|
||||||
| security.authentication.ldap.ssl.truststore | string | `"/opt/ldapkeystore.jks"` | LDAP jks file absolute path, do not change this value |
|
|
||||||
| security.authentication.ldap.ssl.truststorepassword | string | `""` | LDAP jks password |
|
|
||||||
| security.authentication.ldap.urls | string | `"ldap://ldap.forumsys.com:389/"` | LDAP urls |
|
|
||||||
| security.authentication.ldap.user.admin | string | `"read-only-admin"` | Admin user account when you log-in with LDAP |
|
|
||||||
| security.authentication.ldap.user.emailattribute | string | `"mail"` | LDAP user email attribute |
|
|
||||||
| security.authentication.ldap.user.identityattribute | string | `"uid"` | LDAP user identity attribute |
|
|
||||||
| security.authentication.ldap.user.notexistaction | string | `"CREATE"` | action when ldap user is not exist,default value: CREATE. Optional values include(CREATE,DENY) |
|
|
||||||
| security.authentication.ldap.username | string | `"cn=read-only-admin,dc=example,dc=com"` | LDAP username |
|
|
||||||
| security.authentication.type | string | `"PASSWORD"` | Authentication types (supported types: PASSWORD,LDAP,CASDOOR_SSO) |
|
|
||||||
| timezone | string | `"Asia/Shanghai"` | World time and date for cities in all time zones |
|
|
||||||
| worker.affinity | object | `{}` | Affinity is a group of affinity scheduling rules. If specified, the pod's scheduling constraints. More info: [node-affinity](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity) |
|
|
||||||
| worker.annotations | object | `{}` | You can use annotations to attach arbitrary non-identifying metadata to objects. Clients such as tools and libraries can retrieve this metadata. |
|
|
||||||
| worker.customizedConfig | object | `{}` | configure aligned with https://github.com/apache/dolphinscheduler/blob/dev/dolphinscheduler-worker/src/main/resources/application.yaml |
|
|
||||||
| worker.enableCustomizedConfig | bool | `false` | enable configure custom config |
|
|
||||||
| worker.enabled | bool | `true` | Enable or disable the Worker component |
|
|
||||||
| worker.env.DEFAULT_TENANT_ENABLED | bool | `false` | If set true, will use worker bootstrap user as the tenant to execute task when the tenant is `default`; |
|
|
||||||
| worker.env.WORKER_EXEC_THREADS | string | `"100"` | Worker execute thread number to limit task instances |
|
|
||||||
| worker.env.WORKER_HOST_WEIGHT | string | `"100"` | Worker host weight to dispatch tasks |
|
|
||||||
| worker.env.WORKER_MAX_HEARTBEAT_INTERVAL | string | `"10s"` | Worker heartbeat interval |
|
|
||||||
| worker.env.WORKER_SERVER_LOAD_PROTECTION_ENABLED | bool | `false` | If set true, will open worker overload protection |
|
|
||||||
| worker.env.WORKER_SERVER_LOAD_PROTECTION_MAX_DISK_USAGE_PERCENTAGE_THRESHOLDS | float | `0.7` | Worker max disk usage , when the worker's disk usage is smaller then this value, worker server can be dispatched tasks. |
|
|
||||||
| worker.env.WORKER_SERVER_LOAD_PROTECTION_MAX_JVM_CPU_USAGE_PERCENTAGE_THRESHOLDS | float | `0.7` | Worker max jvm cpu usage, when the worker's jvm cpu usage is smaller then this value, worker server can be dispatched tasks. |
|
|
||||||
| worker.env.WORKER_SERVER_LOAD_PROTECTION_MAX_SYSTEM_CPU_USAGE_PERCENTAGE_THRESHOLDS | float | `0.7` | Worker max system cpu usage, when the worker's system cpu usage is smaller then this value, worker server can be dispatched tasks. |
|
|
||||||
| worker.env.WORKER_SERVER_LOAD_PROTECTION_MAX_SYSTEM_MEMORY_USAGE_PERCENTAGE_THRESHOLDS | float | `0.7` | Worker max memory usage , when the worker's memory usage is smaller then this value, worker server can be dispatched tasks. |
|
|
||||||
| worker.env.WORKER_TENANT_CONFIG_AUTO_CREATE_TENANT_ENABLED | bool | `true` | tenant corresponds to the user of the system, which is used by the worker to submit the job. If system does not have this user, it will be automatically created after the parameter worker.tenant.auto.create is true. |
|
|
||||||
| worker.keda.advanced | object | `{}` | Specify HPA related options |
|
|
||||||
| worker.keda.cooldownPeriod | int | `30` | How many seconds KEDA will wait before scaling to zero. Note that HPA has a separate cooldown period for scale-downs |
|
|
||||||
| worker.keda.enabled | bool | `false` | Enable or disable the Keda component |
|
|
||||||
| worker.keda.maxReplicaCount | int | `3` | Maximum number of workers created by keda |
|
|
||||||
| worker.keda.minReplicaCount | int | `0` | Minimum number of workers created by keda |
|
|
||||||
| worker.keda.namespaceLabels | object | `{}` | Keda namespace labels |
|
|
||||||
| worker.keda.pollingInterval | int | `5` | How often KEDA polls the DolphinScheduler DB to report new scale requests to the HPA |
|
|
||||||
| worker.livenessProbe.enabled | bool | `true` | Turn on and off liveness probe |
|
|
||||||
| worker.livenessProbe.failureThreshold | string | `"3"` | Minimum consecutive failures for the probe |
|
|
||||||
| worker.livenessProbe.initialDelaySeconds | string | `"30"` | Delay before liveness probe is initiated |
|
|
||||||
| worker.livenessProbe.periodSeconds | string | `"30"` | How often to perform the probe |
|
|
||||||
| worker.livenessProbe.successThreshold | string | `"1"` | Minimum consecutive successes for the probe |
|
|
||||||
| worker.livenessProbe.timeoutSeconds | string | `"5"` | When the probe times out |
|
|
||||||
| worker.nodeSelector | object | `{}` | NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: [assign-pod-node](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/) |
|
|
||||||
| worker.persistentVolumeClaim | object | `{"dataPersistentVolume":{"accessModes":["ReadWriteOnce"],"enabled":false,"storage":"20Gi","storageClassName":"-"},"enabled":false,"logsPersistentVolume":{"accessModes":["ReadWriteOnce"],"enabled":false,"storage":"20Gi","storageClassName":"-"}}` | PersistentVolumeClaim represents a reference to a PersistentVolumeClaim in the same namespace. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. |
|
|
||||||
| worker.persistentVolumeClaim.dataPersistentVolume.accessModes | list | `["ReadWriteOnce"]` | `PersistentVolumeClaim` access modes |
|
|
||||||
| worker.persistentVolumeClaim.dataPersistentVolume.enabled | bool | `false` | Set `worker.persistentVolumeClaim.dataPersistentVolume.enabled` to `true` to mount a data volume for `worker` |
|
|
||||||
| worker.persistentVolumeClaim.dataPersistentVolume.storage | string | `"20Gi"` | `PersistentVolumeClaim` size |
|
|
||||||
| worker.persistentVolumeClaim.dataPersistentVolume.storageClassName | string | `"-"` | `Worker` data persistent volume storage class. If set to "-", storageClassName: "", which disables dynamic provisioning |
|
|
||||||
| worker.persistentVolumeClaim.enabled | bool | `false` | Set `worker.persistentVolumeClaim.enabled` to `true` to enable `persistentVolumeClaim` for `worker` |
|
|
||||||
| worker.persistentVolumeClaim.logsPersistentVolume.accessModes | list | `["ReadWriteOnce"]` | `PersistentVolumeClaim` access modes |
|
|
||||||
| worker.persistentVolumeClaim.logsPersistentVolume.enabled | bool | `false` | Set `worker.persistentVolumeClaim.logsPersistentVolume.enabled` to `true` to mount a logs volume for `worker` |
|
|
||||||
| worker.persistentVolumeClaim.logsPersistentVolume.storage | string | `"20Gi"` | `PersistentVolumeClaim` size |
|
|
||||||
| worker.persistentVolumeClaim.logsPersistentVolume.storageClassName | string | `"-"` | `Worker` logs data persistent volume storage class. If set to "-", storageClassName: "", which disables dynamic provisioning |
|
|
||||||
| worker.podManagementPolicy | string | `"Parallel"` | PodManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. |
|
|
||||||
| worker.readinessProbe | object | `{"enabled":true,"failureThreshold":"3","initialDelaySeconds":"30","periodSeconds":"30","successThreshold":"1","timeoutSeconds":"5"}` | Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. More info: [container-probes](https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes) |
|
|
||||||
| worker.readinessProbe.enabled | bool | `true` | Turn on and off readiness probe |
|
|
||||||
| worker.readinessProbe.failureThreshold | string | `"3"` | Minimum consecutive failures for the probe |
|
|
||||||
| worker.readinessProbe.initialDelaySeconds | string | `"30"` | Delay before readiness probe is initiated |
|
|
||||||
| worker.readinessProbe.periodSeconds | string | `"30"` | How often to perform the probe |
|
|
||||||
| worker.readinessProbe.successThreshold | string | `"1"` | Minimum consecutive successes for the probe |
|
|
||||||
| worker.readinessProbe.timeoutSeconds | string | `"5"` | When the probe times out |
|
|
||||||
| worker.replicas | string | `"3"` | Replicas is the desired number of replicas of the given Template. |
|
|
||||||
| worker.resources | object | `{}` | Compute Resources required by this container. More info: [manage-resources-containers](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) |
|
|
||||||
| worker.service.annotations | object | `{}` | annotations may need to be set when want to scrapy metrics by prometheus but not install prometheus operator |
|
|
||||||
| worker.service.serviceMonitor | object | `{"annotations":{},"enabled":false,"interval":"15s","labels":{},"path":"/actuator/prometheus"}` | serviceMonitor for prometheus operator |
|
|
||||||
| worker.service.serviceMonitor.annotations | object | `{}` | serviceMonitor.annotations ServiceMonitor annotations |
|
|
||||||
| worker.service.serviceMonitor.enabled | bool | `false` | Enable or disable worker serviceMonitor |
|
|
||||||
| worker.service.serviceMonitor.interval | string | `"15s"` | serviceMonitor.interval interval at which metrics should be scraped |
|
|
||||||
| worker.service.serviceMonitor.labels | object | `{}` | serviceMonitor.labels ServiceMonitor extra labels |
|
|
||||||
| worker.service.serviceMonitor.path | string | `"/actuator/prometheus"` | serviceMonitor.path path of the metrics endpoint |
|
|
||||||
| worker.tolerations | list | `[]` | Tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. |
|
|
||||||
| zookeeper.enabled | bool | `true` | If not exists external registry, the zookeeper registry will be used by default. |
|
|
||||||
| zookeeper.fourlwCommandsWhitelist | string | `"srvr,ruok,wchs,cons"` | A list of comma separated Four Letter Words commands to use |
|
|
||||||
| zookeeper.persistence.enabled | bool | `false` | Set `zookeeper.persistence.enabled` to true to mount a new volume for internal ZooKeeper |
|
|
||||||
| zookeeper.persistence.size | string | `"20Gi"` | PersistentVolumeClaim size |
|
|
||||||
| zookeeper.persistence.storageClass | string | `"-"` | ZooKeeper data persistent volume storage class. If set to "-", storageClassName: "", which disables dynamic provisioning |
|
|
||||||
| zookeeper.service.port | int | `2181` | The port of zookeeper |
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
## About DolphinScheduler for Kubernetes
|
|
||||||
|
|
||||||
{{ template "chart.description" . }}
|
|
||||||
|
|
||||||
This chart bootstraps all the components needed to run Apache DolphinScheduler on a Kubernetes Cluster using [Helm](https://helm.sh).
|
|
||||||
|
|
||||||
## QuickStart in Kubernetes
|
|
||||||
|
|
||||||
Please refer to the [Quick Start in Kubernetes](../../../docs/docs/en/guide/installation/kubernetes.md)
|
|
||||||
|
|
||||||
{{ template "chart.valuesSection" . }}
|
|
||||||
|
|
@ -14,7 +14,8 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
{{- if index .Values.conf "common" }}
|
||||||
registry:
|
{{- range $key, $value := index .Values.conf "common" }}
|
||||||
type: etcd
|
{{ $key }}={{ $value }}
|
||||||
ttl: 2s
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
@ -1,19 +1,19 @@
|
||||||
{{/*
|
#
|
||||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
contributor license agreements. See the NOTICE file distributed with
|
# contributor license agreements. See the NOTICE file distributed with
|
||||||
this work for additional information regarding copyright ownership.
|
# this work for additional information regarding copyright ownership.
|
||||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
# The ASF licenses this file to You under the Apache License, Version 2.0
|
||||||
(the "License"); you may not use this file except in compliance with
|
# (the "License"); you may not use this file except in compliance with
|
||||||
the License. You may obtain a copy of the License at
|
# the License. You may obtain a copy of the License at
|
||||||
|
#
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
# limitations under the License.
|
||||||
*/}}
|
#
|
||||||
|
|
||||||
** Please be patient while the chart DolphinScheduler {{ .Chart.AppVersion }} is being deployed **
|
** Please be patient while the chart DolphinScheduler {{ .Chart.AppVersion }} is being deployed **
|
||||||
|
|
||||||
|
|
@ -47,4 +47,4 @@ Access DolphinScheduler UI URL by:
|
||||||
|
|
||||||
DolphinScheduler UI URL: http://$SERVICE_IP:12345/dolphinscheduler
|
DolphinScheduler UI URL: http://$SERVICE_IP:12345/dolphinscheduler
|
||||||
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
@ -51,6 +51,7 @@ Create a default common labels.
|
||||||
{{- define "dolphinscheduler.common.labels" -}}
|
{{- define "dolphinscheduler.common.labels" -}}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
|
|
@ -116,15 +117,6 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
|
||||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
|
||||||
Create a default fully qualified minio name.
|
|
||||||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
|
||||||
*/}}
|
|
||||||
{{- define "dolphinscheduler.minio.fullname" -}}
|
|
||||||
{{- $name := default "minio" .Values.minio.nameOverride -}}
|
|
||||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Create a default fully qualified zookkeeper quorum.
|
Create a default fully qualified zookkeeper quorum.
|
||||||
*/}}
|
*/}}
|
||||||
|
|
@ -145,10 +137,6 @@ Create a database environment variables.
|
||||||
{{- else }}
|
{{- else }}
|
||||||
value: {{ .Values.externalDatabase.type | quote }}
|
value: {{ .Values.externalDatabase.type | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if or .Values.mysql.enabled (eq .Values.externalDatabase.type "mysql") }}
|
|
||||||
- name: SPRING_PROFILES_ACTIVE
|
|
||||||
value: mysql
|
|
||||||
{{- end }}
|
|
||||||
- name: SPRING_DATASOURCE_URL
|
- name: SPRING_DATASOURCE_URL
|
||||||
{{- if .Values.postgresql.enabled }}
|
{{- if .Values.postgresql.enabled }}
|
||||||
value: jdbc:postgresql://{{ template "dolphinscheduler.postgresql.fullname" . }}:5432/{{ .Values.postgresql.postgresqlDatabase }}?{{ .Values.postgresql.params }}
|
value: jdbc:postgresql://{{ template "dolphinscheduler.postgresql.fullname" . }}:5432/{{ .Values.postgresql.postgresqlDatabase }}?{{ .Values.postgresql.params }}
|
||||||
|
|
@ -178,46 +166,6 @@ Create a database environment variables.
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-externaldb
|
name: {{ include "dolphinscheduler.fullname" . }}-externaldb
|
||||||
key: database-password
|
key: database-password
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- name: SPRING_DATASOURCE_DRIVER-CLASS-NAME
|
|
||||||
{{- if .Values.postgresql.enabled }}
|
|
||||||
value: {{ .Values.postgresql.driverClassName }}
|
|
||||||
{{- else if .Values.mysql.enabled }}
|
|
||||||
value: {{ .Values.mysql.driverClassName }}
|
|
||||||
{{- else }}
|
|
||||||
value: {{ .Values.externalDatabase.driverClassName | quote }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Create a security environment variables.
|
|
||||||
*/}}
|
|
||||||
{{- define "dolphinscheduler.security.env_vars" -}}
|
|
||||||
- name: SECURITY_AUTHENTICATION_TYPE
|
|
||||||
value: {{ .Values.security.authentication.type | quote }}
|
|
||||||
{{- if eq .Values.security.authentication.type "LDAP" }}
|
|
||||||
- name: SECURITY_AUTHENTICATION_LDAP_URLS
|
|
||||||
value: {{ .Values.security.authentication.ldap.urls | quote }}
|
|
||||||
- name: SECURITY_AUTHENTICATION_LDAP_BASE_DN
|
|
||||||
value: {{ .Values.security.authentication.ldap.basedn | quote }}
|
|
||||||
- name: SECURITY_AUTHENTICATION_LDAP_USERNAME
|
|
||||||
value: {{ .Values.security.authentication.ldap.username | quote }}
|
|
||||||
- name: SECURITY_AUTHENTICATION_LDAP_PASSWORD
|
|
||||||
value: {{ .Values.security.authentication.ldap.password | quote }}
|
|
||||||
- name: SECURITY_AUTHENTICATION_LDAP_USER_ADMIN
|
|
||||||
value: {{ .Values.security.authentication.ldap.user.admin | quote }}
|
|
||||||
- name: SECURITY_AUTHENTICATION_LDAP_USER_IDENTITY_ATTRIBUTE
|
|
||||||
value: {{ .Values.security.authentication.ldap.user.identityattribute | quote }}
|
|
||||||
- name: SECURITY_AUTHENTICATION_LDAP_USER_EMAIL_ATTRIBUTE
|
|
||||||
value: {{ .Values.security.authentication.ldap.user.emailattribute | quote }}
|
|
||||||
- name: SECURITY_AUTHENTICATION_LDAP_USER_NOT_EXIST_ACTION
|
|
||||||
value: {{ .Values.security.authentication.ldap.user.notexistaction | quote }}
|
|
||||||
- name: SECURITY_AUTHENTICATION_LDAP_SSL_ENABLE
|
|
||||||
value: {{ .Values.security.authentication.ldap.ssl.enable | quote }}
|
|
||||||
- name: SECURITY_AUTHENTICATION_LDAP_SSL_TRUST_STORE
|
|
||||||
value: {{ .Values.security.authentication.ldap.ssl.truststore | quote }}
|
|
||||||
- name: SECURITY_AUTHENTICATION_LDAP_SSL_TRUST_STORE_PASSWORD
|
|
||||||
value: {{ .Values.security.authentication.ldap.ssl.truststorepassword | quote }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
|
|
@ -225,8 +173,8 @@ Wait for database to be ready.
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "dolphinscheduler.database.wait-for-ready" -}}
|
{{- define "dolphinscheduler.database.wait-for-ready" -}}
|
||||||
- name: wait-for-database
|
- name: wait-for-database
|
||||||
image: {{ .Values.initImage.busybox }}
|
image: busybox:1.30
|
||||||
imagePullPolicy: {{ .Values.initImage.pullPolicy }}
|
imagePullPolicy: IfNotPresent
|
||||||
{{- if .Values.postgresql.enabled }}
|
{{- if .Values.postgresql.enabled }}
|
||||||
command: ['sh', '-xc', 'for i in $(seq 1 180); do nc -z -w3 {{ template "dolphinscheduler.postgresql.fullname" . }} 5432 && exit 0 || sleep 5; done; exit 1']
|
command: ['sh', '-xc', 'for i in $(seq 1 180); do nc -z -w3 {{ template "dolphinscheduler.postgresql.fullname" . }} 5432 && exit 0 || sleep 5; done; exit 1']
|
||||||
{{- else if .Values.mysql.enabled }}
|
{{- else if .Values.mysql.enabled }}
|
||||||
|
|
@ -236,18 +184,6 @@ Wait for database to be ready.
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
|
||||||
Wait for minio to be ready.
|
|
||||||
*/}}
|
|
||||||
{{- define "dolphinscheduler.minio.wait-for-ready" -}}
|
|
||||||
{{- if .Values.minio.enabled }}
|
|
||||||
- name: wait-for-minio
|
|
||||||
image: {{ .Values.initImage.busybox }}
|
|
||||||
imagePullPolicy: {{ .Values.initImage.pullPolicy }}
|
|
||||||
command: ['sh', '-xc', 'for i in $(seq 1 180); do nc -z -w3 {{ template "dolphinscheduler.minio.fullname" . }} 9000 && exit 0 || sleep 5; done; exit 1']
|
|
||||||
{{- end }}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Create a registry environment variables.
|
Create a registry environment variables.
|
||||||
*/}}
|
*/}}
|
||||||
|
|
@ -255,56 +191,15 @@ Create a registry environment variables.
|
||||||
- name: REGISTRY_TYPE
|
- name: REGISTRY_TYPE
|
||||||
{{- if .Values.zookeeper.enabled }}
|
{{- if .Values.zookeeper.enabled }}
|
||||||
value: "zookeeper"
|
value: "zookeeper"
|
||||||
{{- else if .Values.registryEtcd.enabled }}
|
|
||||||
value: "etcd"
|
|
||||||
{{- else if .Values.registryJdbc.enabled }}
|
|
||||||
value: "jdbc"
|
|
||||||
{{- else }}
|
{{- else }}
|
||||||
value: {{ .Values.externalRegistry.registryPluginName }}
|
value: {{ .Values.externalRegistry.registryPluginName }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.registryEtcd.enabled }}
|
|
||||||
- name: REGISTRY_ENDPOINTS
|
|
||||||
value: {{ .Values.registryEtcd.endpoints }}
|
|
||||||
- name: REGISTRY_NAMESPACE
|
|
||||||
value: {{ .Values.registryEtcd.namespace }}
|
|
||||||
- name: REGISTRY_USER
|
|
||||||
value: {{ .Values.registryEtcd.user }}
|
|
||||||
- name: REGISTRY_PASSWORD
|
|
||||||
value: {{ .Values.registryEtcd.passWord }}
|
|
||||||
- name: REGISTRY_AUTHORITY
|
|
||||||
value: {{ .Values.registryEtcd.authority }}
|
|
||||||
- name: REGISTRY_CERT_FILE
|
|
||||||
value: {{ .Values.registryEtcd.ssl.certFile }}
|
|
||||||
- name: REGISTRY_KEY_CERT_CHAIN_FILE
|
|
||||||
value: {{ .Values.registryEtcd.ssl.keyCertChainFile }}
|
|
||||||
- name: REGISTRY_KEY_FILE
|
|
||||||
value: {{ .Values.registryEtcd.ssl.keyFile }}
|
|
||||||
{{- else if .Values.registryJdbc.enabled }}
|
|
||||||
- name: REGISTRY_TERM_REFRESH_INTERVAL
|
|
||||||
value: {{ .Values.registryJdbc.termRefreshInterval }}
|
|
||||||
- name: REGISTRY_TERM_EXPIRE_TIMES
|
|
||||||
value: {{ .Values.registryJdbc.termExpireTimes | quote}}
|
|
||||||
{{- if .Values.registryJdbc.hikariConfig.enabled }}
|
|
||||||
- name: REGISTRY_HIKARI_CONFIG_DRIVER_CLASS_NAME
|
|
||||||
value: {{ .Values.registryJdbc.hikariConfig.driverClassName }}
|
|
||||||
- name: REGISTRY_HIKARI_CONFIG_JDBC_URL
|
|
||||||
value: {{ .Values.registryJdbc.hikariConfig.jdbcurl }}
|
|
||||||
- name: REGISTRY_HIKARI_CONFIG_USERNAME
|
|
||||||
value: {{ .Values.registryJdbc.hikariConfig.username }}
|
|
||||||
- name: REGISTRY_HIKARI_CONFIG_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-registry-db
|
|
||||||
key: registry-password
|
|
||||||
{{- end }}
|
|
||||||
{{- else }}
|
|
||||||
- name: REGISTRY_ZOOKEEPER_CONNECT_STRING
|
- name: REGISTRY_ZOOKEEPER_CONNECT_STRING
|
||||||
{{- if .Values.zookeeper.enabled }}
|
{{- if .Values.zookeeper.enabled }}
|
||||||
value: {{ template "dolphinscheduler.zookeeper.quorum" . }}
|
value: {{ template "dolphinscheduler.zookeeper.quorum" . }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
value: {{ .Values.externalRegistry.registryServers }}
|
value: {{ .Values.externalRegistry.registryServers }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
|
|
@ -348,53 +243,3 @@ Create a fsFileResourcePersistence volumeMount.
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-fs-file
|
name: {{ include "dolphinscheduler.fullname" . }}-fs-file
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
|
||||||
Create a etcd ssl volume.
|
|
||||||
*/}}
|
|
||||||
{{- define "dolphinscheduler.etcd.ssl.volume" -}}
|
|
||||||
{{- if .Values.registryEtcd.ssl.enabled -}}
|
|
||||||
- name: etcd-ssl
|
|
||||||
secret:
|
|
||||||
secretName: {{ include "dolphinscheduler.fullname" . }}-etcd-ssl
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Create a etcd ssl volumeMount.
|
|
||||||
*/}}
|
|
||||||
{{- define "dolphinscheduler.etcd.ssl.volumeMount" -}}
|
|
||||||
{{- if .Values.registryEtcd.ssl.enabled -}}
|
|
||||||
- mountPath: /opt/dolphinscheduler/{{ .Values.registryEtcd.ssl.certFile }}
|
|
||||||
name: etcd-ssl
|
|
||||||
subPath: cert-file
|
|
||||||
- mountPath: /opt/dolphinscheduler/{{ .Values.registryEtcd.ssl.keyCertChainFile }}
|
|
||||||
name: etcd-ssl
|
|
||||||
subPath: key-cert-chain-file
|
|
||||||
- mountPath: /opt/dolphinscheduler/{{ .Values.registryEtcd.ssl.keyFile }}
|
|
||||||
name: etcd-ssl
|
|
||||||
subPath: key-file
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Create a ldap ssl volume.
|
|
||||||
*/}}
|
|
||||||
{{- define "dolphinscheduler.ldap.ssl.volume" -}}
|
|
||||||
{{- if .Values.security.authentication.ldap.ssl.enable -}}
|
|
||||||
- name: jks-file
|
|
||||||
secret:
|
|
||||||
secretName: {{ include "dolphinscheduler.fullname" . }}-ldap-ssl
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Create a ldap ssl volumeMount.
|
|
||||||
*/}}
|
|
||||||
{{- define "dolphinscheduler.ldap.ssl.volumeMount" -}}
|
|
||||||
{{- if .Values.security.authentication.ldap.ssl.enable -}}
|
|
||||||
- mountPath: {{ .Values.security.authentication.ldap.ssl.truststore }}
|
|
||||||
name: jks-file
|
|
||||||
subPath: jks-file
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
||||||
#
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
{{- if .Values.alert.enableCustomizedConfig }}
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-alert
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: {{ include "dolphinscheduler.fullname" . }}-alert
|
|
||||||
{{- include "dolphinscheduler.alert.labels" . | nindent 4 }}
|
|
||||||
data:
|
|
||||||
{{- range $path, $config := .Values.alert.customizedConfig }}
|
|
||||||
{{ $path }}: |
|
|
||||||
{{ $config | indent 4 -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
||||||
#
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
{{- if .Values.api.enableCustomizedConfig }}
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-api
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: {{ include "dolphinscheduler.fullname" . }}-api
|
|
||||||
{{- include "dolphinscheduler.api.labels" . | nindent 4 }}
|
|
||||||
data:
|
|
||||||
{{- range $path, $config := .Values.api.customizedConfig }}
|
|
||||||
{{ $path }}: |
|
|
||||||
{{ $config | indent 4 -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
||||||
#
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
{{- if .Values.master.enableCustomizedConfig }}
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-master
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: {{ include "dolphinscheduler.fullname" . }}-master
|
|
||||||
{{- include "dolphinscheduler.master.labels" . | nindent 4 }}
|
|
||||||
data:
|
|
||||||
{{- range $path, $config := .Values.master.customizedConfig }}
|
|
||||||
{{ $path }}: |
|
|
||||||
{{ $config | indent 4 -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
||||||
#
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
{{- if .Values.worker.enableCustomizedConfig }}
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-worker
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: {{ include "dolphinscheduler.fullname" . }}-worker
|
|
||||||
{{- include "dolphinscheduler.worker.labels" . | nindent 4 }}
|
|
||||||
data:
|
|
||||||
{{- range $path, $config := .Values.worker.customizedConfig }}
|
|
||||||
{{ $path }}: |
|
|
||||||
{{ $config | indent 4 -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
@ -22,23 +22,5 @@ metadata:
|
||||||
app.kubernetes.io/name: {{ include "dolphinscheduler.fullname" . }}-common
|
app.kubernetes.io/name: {{ include "dolphinscheduler.fullname" . }}-common
|
||||||
{{- include "dolphinscheduler.common.labels" . | nindent 4 }}
|
{{- include "dolphinscheduler.common.labels" . | nindent 4 }}
|
||||||
data:
|
data:
|
||||||
{{- if and .Values.api.taskTypeFilter.enabled }}
|
common_properties: |-
|
||||||
task-type-config.yaml: |-
|
{{ tpl (.Files.Get "resources/config/common.properties") . | indent 4 }}
|
||||||
{{- if .Values.api.taskTypeFilter.task }}
|
|
||||||
task:
|
|
||||||
{{- range $key, $value := .Values.api.taskTypeFilter.task }}
|
|
||||||
{{ $key }}:
|
|
||||||
{{- toYaml $value | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
common.properties: |-
|
|
||||||
{{- if index .Values.conf "common" }}
|
|
||||||
{{- range $key, $value := index .Values.conf "common" }}
|
|
||||||
{{- if and $.Values.minio.enabled }}
|
|
||||||
{{- if eq $key "resource.storage.type" }}{{ $value = "S3" }}{{- end }}
|
|
||||||
{{- if eq $key "aws.s3.endpoint" }}{{ $value = print "http://" (include "dolphinscheduler.minio.fullname" $) ":9000" }}{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{ $key }}={{ $value }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
@ -14,7 +14,6 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
{{- if and .Values.alert.enabled }}
|
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
|
|
@ -35,14 +34,9 @@ spec:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
{{- include "dolphinscheduler.alert.labels" . | nindent 8 }}
|
{{- include "dolphinscheduler.alert.labels" . | nindent 8 }}
|
||||||
{{- if or .Values.alert.annotations .Values.conf.auto }}
|
{{- if .Values.alert.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- if .Values.conf.auto }}
|
|
||||||
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.alert.annotations }}
|
|
||||||
{{- toYaml .Values.alert.annotations | nindent 8 }}
|
{{- toYaml .Values.alert.annotations | nindent 8 }}
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: {{ template "dolphinscheduler.fullname" . }}
|
serviceAccountName: {{ template "dolphinscheduler.fullname" . }}
|
||||||
|
|
@ -114,12 +108,7 @@ spec:
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-alert
|
name: {{ include "dolphinscheduler.fullname" . }}-alert
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
mountPath: /opt/dolphinscheduler/conf/common.properties
|
mountPath: /opt/dolphinscheduler/conf/common.properties
|
||||||
subPath: common.properties
|
subPath: common_properties
|
||||||
{{- if .Values.alert.enableCustomizedConfig }}
|
|
||||||
- name: alert-config-volume
|
|
||||||
mountPath: /opt/dolphinscheduler/conf/application.yaml
|
|
||||||
subPath: application.yaml
|
|
||||||
{{- end }}
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: {{ include "dolphinscheduler.fullname" . }}-alert
|
- name: {{ include "dolphinscheduler.fullname" . }}-alert
|
||||||
{{- if .Values.alert.persistentVolumeClaim.enabled }}
|
{{- if .Values.alert.persistentVolumeClaim.enabled }}
|
||||||
|
|
@ -131,9 +120,3 @@ spec:
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
configMap:
|
configMap:
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-configs
|
name: {{ include "dolphinscheduler.fullname" . }}-configs
|
||||||
{{- if .Values.alert.enableCustomizedConfig }}
|
|
||||||
- name: alert-config-volume
|
|
||||||
configMap:
|
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-alert
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
{{- if and .Values.api.enabled }}
|
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
|
|
@ -35,14 +34,9 @@ spec:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
{{- include "dolphinscheduler.api.labels" . | nindent 8 }}
|
{{- include "dolphinscheduler.api.labels" . | nindent 8 }}
|
||||||
{{- if or .Values.api.annotations .Values.conf.auto }}
|
{{- if .Values.api.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- if .Values.conf.auto }}
|
|
||||||
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.api.annotations }}
|
|
||||||
{{- toYaml .Values.api.annotations | nindent 8 }}
|
{{- toYaml .Values.api.annotations | nindent 8 }}
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: {{ template "dolphinscheduler.fullname" . }}
|
serviceAccountName: {{ template "dolphinscheduler.fullname" . }}
|
||||||
|
|
@ -78,7 +72,6 @@ spec:
|
||||||
value: {{ .Values.timezone }}
|
value: {{ .Values.timezone }}
|
||||||
{{- include "dolphinscheduler.database.env_vars" . | nindent 12 }}
|
{{- include "dolphinscheduler.database.env_vars" . | nindent 12 }}
|
||||||
{{- include "dolphinscheduler.registry.env_vars" . | nindent 12 }}
|
{{- include "dolphinscheduler.registry.env_vars" . | nindent 12 }}
|
||||||
{{- include "dolphinscheduler.security.env_vars" . | nindent 12 }}
|
|
||||||
{{ range $key, $value := .Values.api.env }}
|
{{ range $key, $value := .Values.api.env }}
|
||||||
- name: {{ $key }}
|
- name: {{ $key }}
|
||||||
value: {{ $value | quote }}
|
value: {{ $value | quote }}
|
||||||
|
|
@ -115,21 +108,9 @@ spec:
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-api
|
name: {{ include "dolphinscheduler.fullname" . }}-api
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
mountPath: /opt/dolphinscheduler/conf/common.properties
|
mountPath: /opt/dolphinscheduler/conf/common.properties
|
||||||
subPath: common.properties
|
subPath: common_properties
|
||||||
{{- if .Values.api.taskTypeFilter.enabled }}
|
|
||||||
- name: config-volume
|
|
||||||
mountPath: /opt/dolphinscheduler/conf/task-type-config.yaml
|
|
||||||
subPath: task-type-config.yaml
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.api.enableCustomizedConfig }}
|
|
||||||
- name: api-config-volume
|
|
||||||
mountPath: /opt/dolphinscheduler/conf/application.yaml
|
|
||||||
subPath: application.yaml
|
|
||||||
{{- end }}
|
|
||||||
{{- include "dolphinscheduler.sharedStorage.volumeMount" . | nindent 12 }}
|
{{- include "dolphinscheduler.sharedStorage.volumeMount" . | nindent 12 }}
|
||||||
{{- include "dolphinscheduler.fsFileResource.volumeMount" . | nindent 12 }}
|
{{- include "dolphinscheduler.fsFileResource.volumeMount" . | nindent 12 }}
|
||||||
{{- include "dolphinscheduler.ldap.ssl.volumeMount" . | nindent 12 }}
|
|
||||||
{{- include "dolphinscheduler.etcd.ssl.volumeMount" . | nindent 12 }}
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: {{ include "dolphinscheduler.fullname" . }}-api
|
- name: {{ include "dolphinscheduler.fullname" . }}-api
|
||||||
{{- if .Values.api.persistentVolumeClaim.enabled }}
|
{{- if .Values.api.persistentVolumeClaim.enabled }}
|
||||||
|
|
@ -141,13 +122,5 @@ spec:
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
configMap:
|
configMap:
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-configs
|
name: {{ include "dolphinscheduler.fullname" . }}-configs
|
||||||
{{- if .Values.api.enableCustomizedConfig }}
|
|
||||||
- name: api-config-volume
|
|
||||||
configMap:
|
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-api
|
|
||||||
{{- end }}
|
|
||||||
{{- include "dolphinscheduler.sharedStorage.volume" . | nindent 8 }}
|
{{- include "dolphinscheduler.sharedStorage.volume" . | nindent 8 }}
|
||||||
{{- include "dolphinscheduler.fsFileResource.volume" . | nindent 8 }}
|
{{- include "dolphinscheduler.fsFileResource.volume" . | nindent 8 }}
|
||||||
{{- include "dolphinscheduler.ldap.ssl.volume" . | nindent 8 }}
|
|
||||||
{{- include "dolphinscheduler.etcd.ssl.volume" . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
{{- if and .Values.api.enabled .Values.ingress.enabled }}
|
{{- if .Values.ingress.enabled }}
|
||||||
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
|
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
{{- else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress" }}
|
{{- else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress" }}
|
||||||
|
|
|
||||||
|
|
@ -14,16 +14,12 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
{{- if and .Values.api.enabled }}
|
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-db-init-job
|
name: {{ include "dolphinscheduler.fullname" . }}-db-init-job
|
||||||
labels:
|
labels:
|
||||||
{{- include "dolphinscheduler.common.labels" . | nindent 4 }}
|
{{- include "dolphinscheduler.common.labels" . | nindent 4 }}
|
||||||
annotations:
|
|
||||||
"helm.sh/hook": post-install,post-upgrade,post-rollback
|
|
||||||
"helm.sh/hook-weight": "1"
|
|
||||||
spec:
|
spec:
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
|
|
@ -53,4 +49,3 @@ spec:
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-common
|
name: {{ include "dolphinscheduler.fullname" . }}-common
|
||||||
{{- end }}
|
|
||||||
|
|
|
||||||
|
|
@ -1,102 +0,0 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
|
||||||
# or more contributor license agreements. See the NOTICE file
|
|
||||||
# distributed with this work for additional information
|
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
|
||||||
# to you under the Apache License, Version 2.0 (the
|
|
||||||
# "License"); you may not use this file except in compliance
|
|
||||||
# with the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing,
|
|
||||||
# software distributed under the License is distributed on an
|
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
# KIND, either express or implied. See the License for the
|
|
||||||
# specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
################################
|
|
||||||
## DolphinScheduler Worker KEDA Scaler
|
|
||||||
#################################
|
|
||||||
{{- if and .Values.worker.keda.enabled .Values.worker.enabled }}
|
|
||||||
apiVersion: keda.sh/v1alpha1
|
|
||||||
kind: ScaledObject
|
|
||||||
metadata:
|
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-worker
|
|
||||||
labels:
|
|
||||||
component: worker-horizontalpodautoscaler
|
|
||||||
deploymentName: {{ include "dolphinscheduler.fullname" . }}-worker
|
|
||||||
spec:
|
|
||||||
scaleTargetRef:
|
|
||||||
kind: StatefulSet
|
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-worker
|
|
||||||
pollingInterval: {{ .Values.worker.keda.pollingInterval }}
|
|
||||||
cooldownPeriod: {{ .Values.worker.keda.cooldownPeriod }}
|
|
||||||
minReplicaCount: {{ .Values.worker.keda.minReplicaCount }}
|
|
||||||
maxReplicaCount: {{ .Values.worker.keda.maxReplicaCount }}
|
|
||||||
{{- if .Values.worker.keda.advanced }}
|
|
||||||
advanced:
|
|
||||||
{{ toYaml .Values.worker.keda.advanced | indent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
# This is just an example, you could customize the trigger rule.
|
|
||||||
# FYI, check TaskExecutionStatus.java for the human-readable meaning of state values below.
|
|
||||||
triggers:
|
|
||||||
{{- if .Values.postgresql.enabled }}
|
|
||||||
- type: postgresql
|
|
||||||
metadata:
|
|
||||||
host: {{ template "dolphinscheduler.postgresql.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local
|
|
||||||
port: "5432"
|
|
||||||
dbName: {{ .Values.postgresql.postgresqlDatabase }}
|
|
||||||
userName: {{ .Values.postgresql.postgresqlUsername }}
|
|
||||||
passwordFromEnv: SPRING_DATASOURCE_PASSWORD
|
|
||||||
sslmode: "disable"
|
|
||||||
targetQueryValue: "1"
|
|
||||||
query: >-
|
|
||||||
SELECT ceil(COUNT(*)::decimal / {{ .Values.worker.env.WORKER_EXEC_THREADS }})
|
|
||||||
FROM t_ds_task_instance
|
|
||||||
WHERE state IN (0, 1, 8, 12, 17)
|
|
||||||
{{- else if .Values.mysql.enabled }}
|
|
||||||
- type: mysql
|
|
||||||
metadata:
|
|
||||||
host: {{ template "dolphinscheduler.mysql.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local
|
|
||||||
port: "3306"
|
|
||||||
dbName: {{ .Values.mysql.auth.database }}
|
|
||||||
username: {{ .Values.mysql.auth.username }}
|
|
||||||
passwordFromEnv: SPRING_DATASOURCE_PASSWORD
|
|
||||||
queryValue: "1"
|
|
||||||
query: >-
|
|
||||||
SELECT CEIL(COUNT(*) / {{ .Values.worker.env.WORKER_EXEC_THREADS }})
|
|
||||||
FROM t_ds_task_instance
|
|
||||||
WHERE state IN (0, 1, 8, 12, 17)
|
|
||||||
{{- else if .Values.externalDatabase.enabled }}
|
|
||||||
{{- if eq .Values.externalDatabase.type "mysql" }}
|
|
||||||
- type: mysql
|
|
||||||
metadata:
|
|
||||||
host: {{ .Values.externalDatabase.host }}
|
|
||||||
# mysql scaler requests port in string format
|
|
||||||
port: "{{ .Values.externalDatabase.port }}"
|
|
||||||
dbName: {{ .Values.externalDatabase.database }}
|
|
||||||
username: {{ .Values.externalDatabase.username }}
|
|
||||||
passwordFromEnv: SPRING_DATASOURCE_PASSWORD
|
|
||||||
queryValue: "1"
|
|
||||||
query: >-
|
|
||||||
SELECT CEIL(COUNT(*) / {{ .Values.worker.env.WORKER_EXEC_THREADS }})
|
|
||||||
FROM t_ds_task_instance
|
|
||||||
WHERE state IN (0, 1, 8, 12, 17)
|
|
||||||
{{- else if eq .Values.externalDatabase.type "postgresql" }}
|
|
||||||
- type: postgresql
|
|
||||||
metadata:
|
|
||||||
host: {{ .Values.externalDatabase.host }}
|
|
||||||
port: "{{ .Values.externalDatabase.port }}"
|
|
||||||
dbName: {{ .Values.externalDatabase.database }}
|
|
||||||
userName: {{ .Values.externalDatabase.username }}
|
|
||||||
passwordFromEnv: SPRING_DATASOURCE_PASSWORD
|
|
||||||
sslmode: "disable"
|
|
||||||
targetQueryValue: "1"
|
|
||||||
query: >-
|
|
||||||
SELECT ceil(COUNT(*)::decimal / {{ .Values.worker.env.WORKER_EXEC_THREADS }})
|
|
||||||
FROM t_ds_task_instance
|
|
||||||
WHERE state IN (0, 1, 8, 12, 17)
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
{{- if and .Values.alert.enabled .Values.alert.persistentVolumeClaim.enabled }}
|
{{- if .Values.alert.persistentVolumeClaim.enabled }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
{{- if and .Values.api.enabled .Values.api.persistentVolumeClaim.enabled }}
|
{{- if .Values.api.persistentVolumeClaim.enabled }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
|
|
|
||||||
|
|
@ -25,4 +25,4 @@ metadata:
|
||||||
type: Opaque
|
type: Opaque
|
||||||
data:
|
data:
|
||||||
database-password: {{ .Values.externalDatabase.password | b64enc | quote }}
|
database-password: {{ .Values.externalDatabase.password | b64enc | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
@ -1,30 +0,0 @@
|
||||||
#
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
{{- if .Values.registryEtcd.ssl.enabled }}
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-etcd-ssl
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: {{ include "dolphinscheduler.fullname" . }}-etcd-ssl
|
|
||||||
{{- include "dolphinscheduler.common.labels" . | nindent 4 }}
|
|
||||||
type: Opaque
|
|
||||||
data:
|
|
||||||
cert-file: {{ .Files.Get .Values.registryEtcd.ssl.certFile | b64enc | quote }}
|
|
||||||
key-cert-chain-file: {{ .Files.Get .Values.registryEtcd.ssl.keyCertChainFile | b64enc | quote }}
|
|
||||||
key-file: {{ .Files.Get .Values.registryEtcd.ssl.keyFile | b64enc | quote }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
@ -1,28 +0,0 @@
|
||||||
#
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
{{- if .Values.security.authentication.ldap.ssl.enable }}
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-ldap-ssl
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: {{ include "dolphinscheduler.fullname" . }}-ldap-ssl
|
|
||||||
{{- include "dolphinscheduler.common.labels" . | nindent 4 }}
|
|
||||||
type: Opaque
|
|
||||||
data:
|
|
||||||
jks-file: {{ .Values.security.authentication.ldap.ssl.jksbase64content | quote }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
@ -1,28 +0,0 @@
|
||||||
#
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
{{- if .Values.registryJdbc.hikariConfig.enabled }}
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-registry-db
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: {{ include "dolphinscheduler.fullname" . }}-registry-db
|
|
||||||
{{- include "dolphinscheduler.common.labels" . | nindent 4 }}
|
|
||||||
type: Opaque
|
|
||||||
data:
|
|
||||||
registry-password: {{ .Values.registryJdbc.hikariConfig.password | b64enc | quote }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
@ -14,7 +14,6 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
{{- if and .Values.master.enabled }}
|
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
|
|
@ -32,14 +31,9 @@ spec:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
{{- include "dolphinscheduler.master.labels" . | nindent 8 }}
|
{{- include "dolphinscheduler.master.labels" . | nindent 8 }}
|
||||||
{{- if or .Values.master.annotations .Values.conf.auto }}
|
{{- if .Values.master.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- if .Values.conf.auto }}
|
|
||||||
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.master.annotations }}
|
|
||||||
{{- toYaml .Values.master.annotations | nindent 8 }}
|
{{- toYaml .Values.master.annotations | nindent 8 }}
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: {{ template "dolphinscheduler.fullname" . }}
|
serviceAccountName: {{ template "dolphinscheduler.fullname" . }}
|
||||||
|
|
@ -66,8 +60,6 @@ spec:
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5678
|
- containerPort: 5678
|
||||||
name: "master-port"
|
name: "master-port"
|
||||||
- containerPort: 5679
|
|
||||||
name: "actuator-port"
|
|
||||||
env:
|
env:
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: {{ .Values.timezone }}
|
value: {{ .Values.timezone }}
|
||||||
|
|
@ -109,16 +101,10 @@ spec:
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: "/opt/dolphinscheduler/logs"
|
- mountPath: "/opt/dolphinscheduler/logs"
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-master
|
name: {{ include "dolphinscheduler.fullname" . }}-master
|
||||||
{{- if .Values.master.enableCustomizedConfig }}
|
|
||||||
- name: master-config-volume
|
|
||||||
mountPath: /opt/dolphinscheduler/conf/application.yaml
|
|
||||||
subPath: application.yaml
|
|
||||||
{{- end }}
|
|
||||||
{{- include "dolphinscheduler.sharedStorage.volumeMount" . | nindent 12 }}
|
{{- include "dolphinscheduler.sharedStorage.volumeMount" . | nindent 12 }}
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
mountPath: /opt/dolphinscheduler/conf/common.properties
|
mountPath: /opt/dolphinscheduler/conf/common.properties
|
||||||
subPath: common.properties
|
subPath: common_properties
|
||||||
{{- include "dolphinscheduler.etcd.ssl.volumeMount" . | nindent 12 }}
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: {{ include "dolphinscheduler.fullname" . }}-master
|
- name: {{ include "dolphinscheduler.fullname" . }}-master
|
||||||
{{- if .Values.master.persistentVolumeClaim.enabled }}
|
{{- if .Values.master.persistentVolumeClaim.enabled }}
|
||||||
|
|
@ -127,16 +113,10 @@ spec:
|
||||||
{{- else }}
|
{{- else }}
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.master.enableCustomizedConfig }}
|
|
||||||
- name: master-config-volume
|
|
||||||
configMap:
|
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-master
|
|
||||||
{{- end }}
|
|
||||||
{{- include "dolphinscheduler.sharedStorage.volume" . | nindent 8 }}
|
{{- include "dolphinscheduler.sharedStorage.volume" . | nindent 8 }}
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
configMap:
|
configMap:
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-configs
|
name: {{ include "dolphinscheduler.fullname" . }}-configs
|
||||||
{{- include "dolphinscheduler.etcd.ssl.volume" . | nindent 8 }}
|
|
||||||
{{- if .Values.master.persistentVolumeClaim.enabled }}
|
{{- if .Values.master.persistentVolumeClaim.enabled }}
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
- metadata:
|
- metadata:
|
||||||
|
|
@ -154,4 +134,3 @@ spec:
|
||||||
requests:
|
requests:
|
||||||
storage: {{ .Values.master.persistentVolumeClaim.storage | quote }}
|
storage: {{ .Values.master.persistentVolumeClaim.storage | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
{{- if and .Values.worker.enabled }}
|
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
|
|
@ -32,14 +31,9 @@ spec:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
{{- include "dolphinscheduler.worker.labels" . | nindent 8 }}
|
{{- include "dolphinscheduler.worker.labels" . | nindent 8 }}
|
||||||
{{- if or .Values.worker.annotations .Values.conf.auto }}
|
{{- if .Values.worker.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- if .Values.conf.auto }}
|
|
||||||
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.worker.annotations }}
|
|
||||||
{{- toYaml .Values.worker.annotations | nindent 8 }}
|
{{- toYaml .Values.worker.annotations | nindent 8 }}
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: {{ template "dolphinscheduler.fullname" . }}
|
serviceAccountName: {{ template "dolphinscheduler.fullname" . }}
|
||||||
|
|
@ -66,13 +60,13 @@ spec:
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 1234
|
- containerPort: 1234
|
||||||
name: "worker-port"
|
name: "worker-port"
|
||||||
- containerPort: 1235
|
|
||||||
name: "actuator-port"
|
|
||||||
env:
|
env:
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: {{ .Values.timezone }}
|
value: {{ .Values.timezone }}
|
||||||
- name: SPRING_JACKSON_TIME_ZONE
|
- name: SPRING_JACKSON_TIME_ZONE
|
||||||
value: {{ .Values.timezone }}
|
value: {{ .Values.timezone }}
|
||||||
|
- name: WORKER_ALERT_LISTEN_HOST
|
||||||
|
value: {{ include "dolphinscheduler.fullname" . }}-alert
|
||||||
{{- include "dolphinscheduler.database.env_vars" . | nindent 12 }}
|
{{- include "dolphinscheduler.database.env_vars" . | nindent 12 }}
|
||||||
{{- include "dolphinscheduler.registry.env_vars" . | nindent 12 }}
|
{{- include "dolphinscheduler.registry.env_vars" . | nindent 12 }}
|
||||||
{{ range $key, $value := .Values.worker.env }}
|
{{ range $key, $value := .Values.worker.env }}
|
||||||
|
|
@ -111,19 +105,12 @@ spec:
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-worker-data
|
name: {{ include "dolphinscheduler.fullname" . }}-worker-data
|
||||||
- mountPath: "/opt/dolphinscheduler/logs"
|
- mountPath: "/opt/dolphinscheduler/logs"
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-worker-logs
|
name: {{ include "dolphinscheduler.fullname" . }}-worker-logs
|
||||||
{{- if .Values.worker.enableCustomizedConfig }}
|
|
||||||
- name: worker-config-volume
|
|
||||||
mountPath: /opt/dolphinscheduler/conf/application.yaml
|
|
||||||
subPath: application.yaml
|
|
||||||
{{- end }}
|
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
mountPath: /opt/dolphinscheduler/conf/common.properties
|
mountPath: /opt/dolphinscheduler/conf/common.properties
|
||||||
subPath: common.properties
|
subPath: common_properties
|
||||||
{{- include "dolphinscheduler.sharedStorage.volumeMount" . | nindent 12 }}
|
{{- include "dolphinscheduler.sharedStorage.volumeMount" . | nindent 12 }}
|
||||||
{{- include "dolphinscheduler.fsFileResource.volumeMount" . | nindent 12 }}
|
{{- include "dolphinscheduler.fsFileResource.volumeMount" . | nindent 12 }}
|
||||||
{{- include "dolphinscheduler.etcd.ssl.volumeMount" . | nindent 12 }}
|
|
||||||
volumes:
|
volumes:
|
||||||
{{- if .Values.worker.persistentVolumeClaim.enabled }}
|
|
||||||
- name: {{ include "dolphinscheduler.fullname" . }}-worker-data
|
- name: {{ include "dolphinscheduler.fullname" . }}-worker-data
|
||||||
{{- if .Values.worker.persistentVolumeClaim.dataPersistentVolume.enabled }}
|
{{- if .Values.worker.persistentVolumeClaim.dataPersistentVolume.enabled }}
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
|
@ -138,23 +125,11 @@ spec:
|
||||||
{{- else }}
|
{{- else }}
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else }}
|
|
||||||
- name: {{ include "dolphinscheduler.fullname" . }}-worker-data
|
|
||||||
emptyDir: {}
|
|
||||||
- name: {{ include "dolphinscheduler.fullname" . }}-worker-logs
|
|
||||||
emptyDir: {}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.worker.enableCustomizedConfig }}
|
|
||||||
- name: worker-config-volume
|
|
||||||
configMap:
|
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-worker
|
|
||||||
{{- end }}
|
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
configMap:
|
configMap:
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-configs
|
name: {{ include "dolphinscheduler.fullname" . }}-configs
|
||||||
{{- include "dolphinscheduler.sharedStorage.volume" . | nindent 8 }}
|
{{- include "dolphinscheduler.sharedStorage.volume" . | nindent 8 }}
|
||||||
{{- include "dolphinscheduler.fsFileResource.volume" . | nindent 8 }}
|
{{- include "dolphinscheduler.fsFileResource.volume" . | nindent 8 }}
|
||||||
{{- include "dolphinscheduler.etcd.ssl.volume" . | nindent 8 }}
|
|
||||||
{{- if .Values.worker.persistentVolumeClaim.enabled }}
|
{{- if .Values.worker.persistentVolumeClaim.enabled }}
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
{{- if .Values.worker.persistentVolumeClaim.dataPersistentVolume.enabled }}
|
{{- if .Values.worker.persistentVolumeClaim.dataPersistentVolume.enabled }}
|
||||||
|
|
@ -190,4 +165,3 @@ spec:
|
||||||
storage: {{ .Values.worker.persistentVolumeClaim.logsPersistentVolume.storage | quote }}
|
storage: {{ .Values.worker.persistentVolumeClaim.logsPersistentVolume.storage | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
|
||||||
|
|
|
||||||
|
|
@ -14,18 +14,13 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
{{- if and .Values.alert.enabled }}
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-alert
|
name: {{ include "dolphinscheduler.fullname" . }}-alert
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ include "dolphinscheduler.fullname" . }}-alert
|
app.kubernetes.io/name: {{ include "dolphinscheduler.fullname" . }}-alert
|
||||||
{{- include "dolphinscheduler.common.labels" . | nindent 4 }}
|
{{- include "dolphinscheduler.common.labels" . | nindent 4 }}
|
||||||
{{- if .Values.alert.service.annotations }}
|
|
||||||
annotations: {{- toYaml .Values.alert.service.annotations | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- port: 50052
|
- port: 50052
|
||||||
|
|
@ -38,34 +33,3 @@ spec:
|
||||||
name: actuator-port
|
name: actuator-port
|
||||||
selector:
|
selector:
|
||||||
{{- include "dolphinscheduler.alert.labels" . | nindent 4 }}
|
{{- include "dolphinscheduler.alert.labels" . | nindent 4 }}
|
||||||
|
|
||||||
---
|
|
||||||
{{- if .Values.alert.service.serviceMonitor.enabled }}
|
|
||||||
apiVersion: monitoring.coreos.com/v1
|
|
||||||
kind: ServiceMonitor
|
|
||||||
metadata:
|
|
||||||
name: {{ include "dolphinscheduler.fullname" . }}-alert
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
labels:
|
|
||||||
{{- include "dolphinscheduler.common.labels" . | nindent 4 }}
|
|
||||||
{{- if .Values.alert.service.serviceMonitor.labels }}
|
|
||||||
{{- toYaml .Values.alert.service.serviceMonitor.labels | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.alert.service.serviceMonitor.annotations }}
|
|
||||||
annotations: {{- toYaml .Values.alert.service.serviceMonitor.annotations | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
spec:
|
|
||||||
namespaceSelector:
|
|
||||||
matchNames:
|
|
||||||
- {{ .Values.alert.service.serviceMonitor.namespace | default .Release.Namespace }}
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app.kubernetes.io/name: {{ include "dolphinscheduler.fullname" . }}-alert
|
|
||||||
{{- include "dolphinscheduler.common.labels" . | nindent 6 }}
|
|
||||||
endpoints:
|
|
||||||
- scheme: http
|
|
||||||
targetPort: actuator-port
|
|
||||||
path: {{ .Values.alert.service.serviceMonitor.path }}
|
|
||||||
interval: {{ .Values.alert.service.serviceMonitor.interval }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue