Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feature: uwsgi.ini extra config #98

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

plesoun-stein
Copy link

@plesoun-stein plesoun-stein commented Feb 1, 2024

❤️ Thank you for your contribution!

Description

config map for uwsgi.ini is static file.
it may be helpfull to append extra config (yes, we need it)

details in issue #97

Checklist

Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:

Third-party code

If you've added third-party code (copy/pasted or new dependencies), please reach out to an architect.

Reminder

By using GitHub, you have already agreed to the GitHub’s Terms of Service including that:

  1. You license your contribution under the same terms as the current repository’s license.
  2. You agree that you have the right to license your contribution under the current repository’s license.

@@ -37,6 +37,7 @@ invenio:
consumer_secret: ""
extra_config: {}
extra_env_from_secret: {}
uwsgi_extra_config: {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Typically, Helm values use camelCase and not snake_case. I suggest we change that.

Copy link
Author

Choose a reason for hiding this comment

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

I have followed chart's convention
camelCase is better.

Copy link
Contributor

Choose a reason for hiding this comment

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

This chart is inconsistent with what case it uses. But do as you wish. 🙃

{{- range $key, $val := .Values.invenio.uwsgi_extra_config }}
{{ $key }} = {{ $val }}
{{- end -}}

Copy link
Contributor

Choose a reason for hiding this comment

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

Seems to be a trailing newline added here.

@@ -55,3 +55,7 @@ data:
die-on-term = true
# hook-master-start = unix_signal:2 gracefully_kill_them_all
# hook-master-start = unix_signal:15 gracefully_kill_them_all
{{- range $key, $val := .Values.invenio.uwsgi_extra_config }}
{{ $key }} = {{ $val }}
{{- end -}}
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we drop the trailing -, just in case we want to add something more after this line in the future…

Suggested change
{{- end -}}
{{- end }}

@lindhe
Copy link
Contributor

lindhe commented Mar 26, 2024

Apart from the minor things I've commented on, I think this looks good! 👍 Makes sense to insert values this way, I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To review
Development

Successfully merging this pull request may close these issues.

2 participants