# What this PR does 1. Fixes setting extra envs using: ```yaml env: proxy: http://example.com SOME_VAR: some-value ``` It had failed if postgresql setting enabled and in `job-migrate` 2. Fixes an issue if custom database and username set for internal mariadb, `MYSQL_` envs did not use them ```yaml mariadb: auth: database: grafana_oncall username: grafana_oncall ``` 3. Added `imagePullSecrets: []` to values.yaml. It used in helm chart, but does not present in the values.yaml 4. More unit tests ## Which issue(s) this PR fixes ## 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: Ildar Iskhakov <Ildar.iskhakov@grafana.com>
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
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=map[] -> 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
|
|
|
|
|
|
|