-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Helm chart: added configuration of uwsgi using environment variables (#…
…2045) # What this PR does Adds `uwsgi` configuration to helm chart. Sets environment variables with name capitalized and prefixed with `UWSGI_`, and dashes are substituted with underscores like described [here](https://uwsgi-docs.readthedocs.io/en/latest/Configuration.html#environment-variables) Sets `UWSGI_LISTEN=1024` by default, but can be overwritten or completely removed by `uwsgi: null` Or is it better to not specify default value (it's not backward compatible)? Also, small indentation fixes for postgresql configuration. ## Which issue(s) this PR fixes closes #562 Also, [this PR](#856) has been closed because of this PR ## Checklist - [x] Unit, integration, and e2e (if applicable) tests updated - [ ] Documentation added (or `pr:no public docs` PR label added if not required) - [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not required) Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
- Loading branch information
1 parent
4ebc723
commit 8049b50
Showing
5 changed files
with
74 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
suite: test uwsgi environment variables | ||
templates: | ||
- engine/deployment.yaml | ||
- engine/job-migrate.yaml | ||
- celery/deployment-celery.yaml | ||
release: | ||
name: oncall | ||
tests: | ||
- it: uwsgi.listen should overwrite UWSGI_LISTEN env | ||
set: | ||
uwsgi.listen: 128 | ||
asserts: | ||
- contains: | ||
path: spec.template.spec.containers[0].env | ||
content: | ||
name: UWSGI_LISTEN | ||
value: "128" | ||
- it: uwsgi.envs should set multiple UWSGI_* envs | ||
set: | ||
uwsgi: | ||
processes: 3 | ||
max-requests: 1000 | ||
asserts: | ||
- contains: | ||
path: spec.template.spec.containers[0].env | ||
content: | ||
name: UWSGI_LISTEN | ||
value: "1024" | ||
- contains: | ||
path: spec.template.spec.containers[0].env | ||
content: | ||
name: UWSGI_PROCESSES | ||
value: "3" | ||
- contains: | ||
path: spec.template.spec.containers[0].env | ||
content: | ||
name: UWSGI_MAX_REQUESTS | ||
value: "1000" | ||
- it: uwsgi.null should not set any UWSGI_* variable | ||
set: | ||
uwsgi: null | ||
asserts: | ||
- notContains: | ||
path: spec.template.spec.containers[0].env | ||
content: | ||
name: UWSGI_LISTEN | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters