oncall-engine/helm
Jack Jackson 4add163608
Correct init command for Postgres Database (#1243)
It seems that the MySQL syntax command was mistakenly copied to the
instructions for Postgres, which uses a different syntax - ref
[here](https://www.postgresql.org/docs/current/sql-createdatabase.html)
for creation syntax, and
[here](https://www.postgresql.org/docs/current/multibyte.html) for
encoding information. I did read through
[here](https://www.postgresql.org/docs/current/collation.html) looking
for an appropriate collation, but they appear to be
installation-specific rather than having a standard set defined in
documentation - I omitted this value (thus setting to the default), and
haven't noted any immediate problems.

Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
2023-02-02 07:46:59 +01:00
..
oncall Correct init command for Postgres Database (#1243) 2023-02-02 07:46:59 +01:00
cr.yaml Remove helm chart signing (#1126) 2023-01-12 19:02:44 +08:00
ct.yaml Remove trailing slash 2022-06-21 15:03:42 +03:00
kind.yml Add new ci pipeline: helm chart end to end testing (#855) 2022-11-21 16:10:25 +01:00
README.md lint 2023-01-12 18:37:14 +00:00
simple.yml Add new ci pipeline: helm chart end to end testing (#855) 2022-11-21 16:10:25 +01:00
values-arm64.yml Add new ci pipeline: helm chart end to end testing (#855) 2022-11-21 16:10:25 +01:00
values-local-image.yml Add new ci pipeline: helm chart end to end testing (#855) 2022-11-21 16:10:25 +01:00

How to run the chart locally

  1. 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
    
  2. (Optional) Build oncall image locally and load it to kind cluster

  3. docker build ../engine -t oncall/engine:latest --target dev
    kind load docker-image oncall/engine:latest
    
  4. Install the helm chart

    helm install helm-testing \
    ./oncall --wait --timeout 30m \
    --wait-for-jobs \
    --values simple.yml \
    --values values-arm64.yml
    
  5. 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"
    
  6. Clean up

    kind delete cluster