# 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>
25 lines
617 B
YAML
25 lines
617 B
YAML
suite: test image pull secrets
|
|
templates:
|
|
- celery/deployment-celery.yaml
|
|
- engine/deployment.yaml
|
|
- engine/job-migrate.yaml
|
|
release:
|
|
name: oncall
|
|
tests:
|
|
- it: imagePullSecrets=[] -> should not create spec.template.spec.imagePullSecrets
|
|
set:
|
|
imagePullSecrets: []
|
|
asserts:
|
|
- notExists:
|
|
path: spec.template.spec.imagePullSecrets
|
|
|
|
- it: imagePullSecrets -> should use custom imagePullSecrets
|
|
set:
|
|
imagePullSecrets:
|
|
- name: regcred
|
|
asserts:
|
|
- contains:
|
|
path: spec.template.spec.imagePullSecrets
|
|
content:
|
|
name: regcred
|
|
|