# 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 https://github.com/grafana/oncall/issues/562 Also, [this PR](https://github.com/grafana/oncall/pull/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> |
||
|---|---|---|
| .. | ||
| oncall | ||
| cr.yaml | ||
| ct.yaml | ||
| kind.yml | ||
| README.md | ||
| simple.yml | ||
| values-arm64.yml | ||
| values-local-image.yml | ||
How to run the chart locally
-
Create the cluster with kind
Make sure ports 30001 and 30002 are free on your machine
kind create cluster --image kindest/node:v1.24.7 --config kind.yml -
(Optional) Build oncall image locally and load it to kind cluster
-
docker build ../engine -t oncall/engine:latest --target dev kind load docker-image oncall/engine:latest -
Install the helm chart
helm install helm-testing \ --wait \ --timeout 30m \ --wait-for-jobs \ --values ./simple.yml \ --values ./values-arm64.yml \ ./oncall -
Get credentials
echo "\n\nOpen Grafana on localhost:30002 with credentials - user: admin, password: $(kubectl get secret --namespace default helm-testing-grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo)" echo "Open Plugins -> Grafana OnCall -> fill form: backend url: http://host.docker.internal:30001" -
Clean up
kind delete cluster