-
Notifications
You must be signed in to change notification settings - Fork 20
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
base: master
Are you sure you want to change the base?
feature: uwsgi.ini extra config #98
Conversation
cb08401
to
67e0e60
Compare
@@ -37,6 +37,7 @@ invenio: | |||
consumer_secret: "" | |||
extra_config: {} | |||
extra_env_from_secret: {} | |||
uwsgi_extra_config: {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typically, Helm values use camelCase and not snake_case. I suggest we change that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have followed chart's convention
camelCase is better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 -}} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 -}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we drop the trailing -
, just in case we want to add something more after this line in the future…
{{- end -}} | |
{{- end }} |
Apart from the minor things I've commented on, I think this looks good! 👍 Makes sense to insert values this way, I think. |
❤️ 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: