Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Improvement][Helm] Make configmap of api/master/worker/alert configuration #16058

Merged
merged 9 commits into from
Jun 21, 2024

Conversation

pegasas
Copy link
Contributor

@pegasas pegasas commented May 23, 2024

…ration

Purpose of the pull request

resolve: #16028

Brief change log

we found that it will bring multi application.yaml maintainence cost after involving new configmap into helm chart.
After discussion we decide to add a flag and default false,
then we can keep application.yaml in api/master/worker/alert clean.

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

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

(or)

This change added tests and can be verified as follows:

(or)

If your pull request contain incompatible change, you should also add it to docs/docs/en/guide/upgrede/incompatible.md

@pegasas pegasas requested a review from caishunfeng as a code owner May 23, 2024 06:59
Copy link
Member

@Gallardot Gallardot left a comment

Choose a reason for hiding this comment

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

Good job, LGTM.

@Radeity
Copy link
Member

Radeity commented May 23, 2024

Then datasource.profile added in #15922 is useless?

@pegasas
Copy link
Contributor Author

pegasas commented May 27, 2024

Then datasource.profile added in #15922 is useless?

We do not add datasource.profile added in #15922 for that PR.
We can still implement datasource.profile in current design by setting variable.

Radeity
Radeity previously approved these changes May 27, 2024
@codecov-commenter
Copy link

codecov-commenter commented May 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 40.72%. Comparing base (61a6bd0) to head (13905ca).

Current head 13905ca differs from pull request most recent head 7b5f248

Please upload reports for the commit 7b5f248 to get more accurate results.

Additional details and impacted files
@@             Coverage Diff              @@
##                dev   #16058      +/-   ##
============================================
+ Coverage     40.70%   40.72%   +0.01%     
- Complexity     5245     5247       +2     
============================================
  Files          1385     1385              
  Lines         46109    46109              
  Branches       4923     4923              
============================================
+ Hits          18768    18776       +8     
+ Misses        25414    25407       -7     
+ Partials       1927     1926       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Radeity
Copy link
Member

Radeity commented May 27, 2024

Hi @pegasas , please fix CI.

@@ -449,7 +449,17 @@ master:
# requests:
# memory: "2Gi"
# cpu: "500m"

enableCustomizedConfig: false
customizedConfig: { }
Copy link
Member

Choose a reason for hiding this comment

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

New configuration items need to be commented

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Add comments link to origin application.yaml path.

Copy link
Member

Choose a reason for hiding this comment

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

Please refer to helm doc to write comments so that helm doc can automatically generate documentation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure. Done.

{{ $path }}: |
{{ $config | indent 4 -}}
{{- end -}}
{{- end -}}
Copy link
Member

Choose a reason for hiding this comment

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

need a new line at the end of the file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@Radeity
Copy link
Member

Radeity commented May 28, 2024

Help check this? cc @Gallardot
image

…ration

Update deploy/kubernetes/dolphinscheduler/templates/statefulset-dolphinscheduler-worker.yaml

Co-authored-by: Gallardot <gallardot@apache.org>
Radeity
Radeity previously approved these changes May 30, 2024
@Radeity Radeity added improvement make more easy to user or prompt friendly ready-to-merge 3.3.0 labels May 30, 2024
@Radeity Radeity added this to the 3.3.0 milestone May 30, 2024
@ruanwenjun ruanwenjun changed the title [Improvement][Helm] Make configmap of api/master/worker/alert configu… [Improvement][Helm] Make configmap of api/master/worker/alert configuration May 30, 2024
deploy/kubernetes/dolphinscheduler/values.yaml Outdated Show resolved Hide resolved
Co-authored-by: Wenjun Ruan <wenjun@apache.org>
@pegasas
Copy link
Contributor Author

pegasas commented Jun 11, 2024

hi, team, would you like to review the PR when anytime you are available? Thanks

Copy link
Contributor

@rickchengx rickchengx left a comment

Choose a reason for hiding this comment

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

LGTM, this could avoid multiple application.yaml

Copy link
Member

@SbloodyS SbloodyS left a comment

Choose a reason for hiding this comment

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

+1

Copy link

sonarcloud bot commented Jun 21, 2024

1 similar comment
Copy link

sonarcloud bot commented Jun 21, 2024

@SbloodyS SbloodyS merged commit 4a76a07 into apache:dev Jun 21, 2024
63 of 64 checks passed
@SbloodyS SbloodyS added 3.2.2 and removed 3.3.0 labels Jun 26, 2024
@SbloodyS SbloodyS modified the milestones: 3.3.0, 3.2.2 Jun 26, 2024
SbloodyS pushed a commit to SbloodyS/dolphinscheduler that referenced this pull request Jun 26, 2024
…ration (apache#16058)

Update deploy/kubernetes/dolphinscheduler/templates/statefulset-dolphinscheduler-worker.yaml

* Update deploy/kubernetes/dolphinscheduler/values.yaml
SbloodyS added a commit that referenced this pull request Jun 26, 2024
* [Fix-16174] Incorrect cluster installation guide. (#16208)

* [Fix][CI] fix the ci error of Values.datasource.profile (#16031)

* [Improvement][Helm] Make configmap of api/master/worker/alert configuration (#16058)

Update deploy/kubernetes/dolphinscheduler/templates/statefulset-dolphinscheduler-worker.yaml

* Update deploy/kubernetes/dolphinscheduler/values.yaml

* [helm] remove appversion from labels (#16066)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Improvement][Helm] Make configmap of api/master/worker/alert configuration
7 participants