Commit graph

141 commits

Author SHA1 Message Date
Alexander Cherepanov
8049b5075d
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 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>
2023-05-29 17:35:43 +00:00
Alexander Cherepanov
9e65f6bf14
Fix bugs in helm chart with external postgresql configuration (#2036)
# What this PR does

Fixing some bugs with external Postgresql configuration.

Also I added some unit tests for helm chart using
[helm-unittest](https://github.com/helm-unittest/helm-unittest). If it's
not an appropriate tool, please suggest another, or I can remove that
test. I added
[this](https://github.com/marketplace/actions/helm-unit-tests) Github
Action to run helm unit tests.


## Which issue(s) this PR fixes
closes #1727 
closes #1923
closes #1245
closes #845 

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [ ] Documentation added (or `pr:no public docs` PR label added if not
required)
- [ ] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)

---------

Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
Co-authored-by: Joey Orlando <joseph.t.orlando@gmail.com>
2023-05-26 13:50:24 +00:00
GitHub Actions
3478b05f07 Release oncall Helm chart 1.2.28 2023-05-24 09:09:18 +00:00
GitHub Actions
72bdc80dec Release oncall Helm chart 1.2.27 2023-05-23 09:32:52 +00:00
GitHub Actions
3941c81972 Release oncall Helm chart 1.2.26 2023-05-18 19:18:03 +00:00
GitHub Actions
4f63473b42 Release oncall Helm chart 1.2.24 2023-05-17 19:45:43 +00:00
GitHub Actions
b6b30cc0b8 Release oncall Helm chart 1.2.23 2023-05-15 17:36:33 +00:00
GitHub Actions
226e6f1e63 Release oncall Helm chart 1.2.22 2023-05-12 12:45:44 +00:00
GitHub Actions
53ee99f482 Release oncall Helm chart 1.2.21 2023-05-09 17:57:12 +00:00
GitHub Actions
1b98d67dd2 Release oncall Helm chart 1.2.19 2023-05-04 16:56:10 +00:00
GitHub Actions
10bfd520fd Release oncall Helm chart 1.2.17 2023-05-02 21:28:59 +00:00
GitHub Actions
539c44c864 Release oncall Helm chart 1.2.16 2023-04-27 15:58:55 +00:00
GitHub Actions
fa24ee9062 Release oncall Helm chart 1.2.15 2023-04-25 07:43:12 +00:00
Ildar Iskhakov
9f2ae3750c
Merge pull request #1815 from grafana/dev
v1.1.25
2023-04-25 15:40:59 +08:00
atownsend247
18fe390d44
Extend twilio secrets (#1435)
# What this PR does

This allows the use of existing secrets for the twilio configuration,
much like slack already does, as have used that to influence these
changes

## Which issue(s) this PR fixes

## Checklist

- [ ] Tests updated
- [x] Documentation added
- [x] `CHANGELOG.md` updated

---------

Co-authored-by: Matvey Kukuy <Matvey-Kuk@users.noreply.github.com>
2023-04-21 17:21:06 +03:00
Matthias Teich
1bd157f7f3
Fix helm hook for migration job (#1789)
# What this PR does
This PR fixes the migration job when using helm hooks.
## Which issue(s) this PR fixes
Currently when enabling the useHooks option in the helm chart there is a
deadlock as the hook is defined as "post-upgrade, post-install". In this
case the database migration will only be executed when all other pods
are ready. This will not happen as the pods are waiting for the database
migration. So we need to use "pre-install, preupgrade" instead of
"post-install,post-upgrade"

## Checklist

- [ ] 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>
2023-04-20 05:39:53 +00:00
GitHub Actions
3bb15cff94 Release oncall Helm chart 1.2.14 2023-04-19 15:35:55 +00:00
GitHub Actions
a4e555b81d Release oncall Helm chart 1.2.13 2023-04-19 02:28:19 +00:00
GitHub Actions
c074058267 Release oncall Helm chart 1.2.12 2023-04-18 11:14:08 +00:00
Joey Orlando
eccf40e004
Merge pull request #1773 from grafana/dev
v1.2.12
2023-04-18 13:13:07 +02:00
github-actions[bot]
a55c4336e9
Merge: Release oncall Helm chart 1.2.11 (#1751)
Merge this PR to `main` branch to start another [github actions
job](https://github.com/grafana/oncall/blob/dev/.github/workflows/helm_release.yml)
that will release the updated version of the chart (version: 1.2.11,
appVersion: v1.2.11) into `grafana/helm-charts` helm repository.

This PR was created automatically by this [github
action](https://github.com/grafana/oncall/blob/dev/.github/workflows/helm_release_pr.yml).

---------

Co-authored-by: GitHub Actions <actions@github.com>
Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
2023-04-18 12:31:36 +02:00
github-actions[bot]
00c61b0b30
Merge: Release oncall Helm chart 1.2.9 (#1722)
Merge this PR to `main` branch to start another [github actions
job](https://github.com/grafana/oncall/blob/dev/.github/workflows/helm_release.yml)
that will release the updated version of the chart (version: 1.2.9,
appVersion: v1.2.9) into `grafana/helm-charts` helm repository.

This PR was created automatically by this [github
action](https://github.com/grafana/oncall/blob/dev/.github/workflows/helm_release_pr.yml).

Co-authored-by: GitHub Actions <actions@github.com>
Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
2023-04-18 12:31:08 +02:00
Joey Orlando
f74a0c3479
Merge branch 'main' into dev 2023-04-18 12:28:04 +02:00
Matthias Teich
0c42c2a86d
Add option to use helm hook for migration job (#1386)
# What this PR does
This PR adds the option to use helm hooks for the database migration.

## Which issue(s) this PR fixes
Currently oncall always shows as out-of-sync in argo-cd because the name
changes on each hard refresh.
When using a helm hook the job is executed on sync but does not show as
out-of-sync

## Checklist

- [ ] Tests updated
- [ ] Documentation added
- [x] `CHANGELOG.md` updated

---------

Co-authored-by: Ildar Iskhakov <Ildar.iskhakov@grafana.com>
2023-04-17 10:22:05 +00:00
GitHub Actions
85c0b97e74 Release oncall Helm chart 1.2.10 2023-04-13 20:34:18 +00:00
GitHub Actions
912ed42815 Release oncall Helm chart 1.2.8 2023-04-06 05:48:44 +00:00
github-actions[bot]
e6e2fbbcaf
Merge: Release oncall Helm chart 1.2.7 (#1691)
Merge this PR to `main` branch to start another [github actions
job](https://github.com/grafana/oncall/blob/dev/.github/workflows/helm_release.yml)
that will release the updated version of the chart (version: 1.2.7,
appVersion: v1.2.7) into `grafana/helm-charts` helm repository.

This PR was created automatically by this [github
action](https://github.com/grafana/oncall/blob/dev/.github/workflows/helm_release_pr.yml).

Co-authored-by: GitHub Actions <actions@github.com>
2023-04-03 12:07:49 +02:00
GitHub Actions
c42cc66184 Release oncall Helm chart 1.2.6 2023-03-30 12:08:10 +00:00
github-actions[bot]
116fcaec82
Merge: Release oncall Helm chart 1.2.5 (#1673)
Merge this PR to `main` branch to start another [github actions
job](https://github.com/grafana/oncall/blob/dev/.github/workflows/helm_release.yml)
that will release the updated version of the chart (version: 1.2.5,
appVersion: v1.2.5) into `grafana/helm-charts` helm repository.

This PR was created automatically by this [github
action](https://github.com/grafana/oncall/blob/dev/.github/workflows/helm_release_pr.yml).

Co-authored-by: GitHub Actions <actions@github.com>
Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
2023-03-30 14:03:00 +02:00
github-actions[bot]
6f99a96c74
Merge: Release oncall Helm chart 1.2.4 (#1670)
Merge this PR to `main` branch to start another [github actions
job](https://github.com/grafana/oncall/blob/dev/.github/workflows/helm_release.yml)
that will release the updated version of the chart (version: 1.2.4,
appVersion: v1.2.4) into `grafana/helm-charts` helm repository.

This PR was created automatically by this [github
action](https://github.com/grafana/oncall/blob/dev/.github/workflows/helm_release_pr.yml).

Co-authored-by: GitHub Actions <actions@github.com>
2023-03-30 14:02:10 +02:00
github-actions[bot]
bea94dab4b
Merge: Release oncall Helm chart 1.2.3 (#1644)
Merge this PR to `main` branch to start another [github actions
job](https://github.com/grafana/oncall/blob/dev/.github/workflows/helm_release.yml)
that will release the updated version of the chart (version: 1.2.3,
appVersion: v1.2.3) into `grafana/helm-charts` helm repository.

This PR was created automatically by this [github
action](https://github.com/grafana/oncall/blob/dev/.github/workflows/helm_release_pr.yml).

Co-authored-by: GitHub Actions <actions@github.com>
2023-03-28 10:19:24 +02:00
GitHub Actions
68fc4fcd40 Release oncall Helm chart 1.2.2 2023-03-27 14:41:50 +00:00
github-actions[bot]
b2bb408dd7
Merge: Release oncall Helm chart 1.2.1 (#1603)
Merge this PR to `main` branch to start another [github actions
job](https://github.com/grafana/oncall/blob/dev/.github/workflows/helm_release.yml)
that will release the updated version of the chart (version: 1.2.1,
appVersion: v1.2.1) into `grafana/helm-charts` helm repository.

This PR was created automatically by this [github
action](https://github.com/grafana/oncall/blob/dev/.github/workflows/helm_release_pr.yml).

Co-authored-by: GitHub Actions <actions@github.com>
2023-03-23 12:01:58 +01:00
GitHub Actions
09c26364b0 Release oncall Helm chart 1.1.41 2023-03-21 16:31:08 +00:00
GitHub Actions
b8d96f4f46 Release oncall Helm chart 1.1.40 2023-03-16 15:32:25 +00:00
github-actions[bot]
f8b9abec17
Merge: Release oncall Helm chart 1.1.39 (#1559)
Merge this PR to `main` branch to start another [github actions
job](https://github.com/grafana/oncall/blob/dev/.github/workflows/helm_release.yml)
that will release the updated version of the chart (version: 1.1.39,
appVersion: v1.1.39) into `grafana/helm-charts` helm repository.

This PR was created automatically by this [github
action](https://github.com/grafana/oncall/blob/dev/.github/workflows/helm_release_pr.yml).

Co-authored-by: GitHub Actions <actions@github.com>
2023-03-16 16:01:30 +08:00
GitHub Actions
a43bc0ec94 Release oncall Helm chart 1.1.38 2023-03-14 18:25:41 +00:00
GitHub Actions
706c915409 Release oncall Helm chart 1.1.37 2023-03-14 12:24:19 +00:00
GitHub Actions
b3d23079c7 Release oncall Helm chart 1.1.36 2023-03-09 13:58:38 +00:00
GitHub Actions
45ebc833e2 Release oncall Helm chart 1.1.35 2023-03-09 09:27:04 +00:00
github-actions[bot]
c3cdb772e0
Merge: Release oncall Helm chart 1.1.34 (#1497)
Merge this PR to `main` branch to start another [github actions
job](https://github.com/grafana/oncall/blob/dev/.github/workflows/helm_release.yml)
that will release the updated version of the chart (version: 1.1.34,
appVersion: v1.1.34) into `grafana/helm-charts` helm repository.

This PR was created automatically by this [github
action](https://github.com/grafana/oncall/blob/dev/.github/workflows/helm_release_pr.yml).

Co-authored-by: GitHub Actions <actions@github.com>
2023-03-08 21:43:39 +08:00
GitHub Actions
d371e26958 Release oncall Helm chart 1.1.33 2023-03-07 13:46:45 +00:00
Vadim Stepanov
a958fe836b
Merge pull request #1477 from grafana/dev
Dev to main
2023-03-07 13:44:16 +00:00
ak0nst
44e93b6ab4
Email and phone limits now environment variable (#1219)
# What this PR does
Email and phone limits now environment variables:
EMAIL_NOTIFICATIONS_LIMIT=200, PHONE_NOTIFICATIONS_LIMIT=200

## Which issue(s) this PR fixes
#1010

## Checklist

- [ ] Tests updated
- [x] Documentation added
- [x] `CHANGELOG.md` updated

---------

Co-authored-by: Vadim Stepanov <vadimkerr@gmail.com>
2023-03-07 10:48:05 +00:00
Joey Orlando
8f22b2fd74
first UI integration test - phone verification + receive SMS alert flow (#900)
**What this PR does**:
Adds our first UI integration test using
[Playwright](https://playwright.dev/) and runs the test on CI. Right now
the test:
- logs into Grafana
- configures the plugin (if it isn't already)
- creates an OnCall schedule, where the current user will be OnCall
- creates an escalation chain to notify based on the newly created
OnCall schedule
- creates a webhook integration, attached to the created escalation
chain
- sends a demo alert for the new integration
- goes to the alert groups page and validates that the escalation step
to alert the OnCall user actually happened

Currently the Playwright tests are run against the 3 default headless
browsers, chromium, Firefox, and webkit. The CI job that runs these
tests is run as a matrix against 3 tagged versions of `grafana`; `main`,
`latest`, and `9.2.6`.

Secondly, it adds most of the logic for a second test which:
- logs into Grafana
- configures the plugin (if it isn't already)
- goes to the user's settings, verifies their phone number (using a tool
called [MailSlurp](https://www.mailslurp.com/))
- configures the current user's default escalation policy to send alerts
via SMS
- creates an escalation policy and configures it to send alerts to our
current user
- creates an integration and assigns the created escalation policy
- triggers a test alert + verifies that we receive the SMS alert text
(again, using MailSlurp)

**Which issue(s) this PR fixes**:
Closes #873 

**Checklist**
- [x] Tests updated
- [ ] Documentation added (N/A)
- [ ] `CHANGELOG.md` updated (N/A)
2023-03-06 16:28:52 +00:00
GitHub Actions
b6cf19ede1 Release oncall Helm chart 1.1.32 2023-03-01 17:05:50 +00:00
GitHub Actions
f80002ec38 Release oncall Helm chart 1.1.31 2023-03-01 09:17:50 +00:00
github-actions[bot]
284247719d
Merge: Release oncall Helm chart 1.1.29 (#1395)
Merge this PR to `main` branch to start another [github actions
job](https://github.com/grafana/oncall/blob/dev/.github/workflows/helm_release.yml)
that will release the updated version of the chart (version: 1.1.29,
appVersion: v1.1.29) into `grafana/helm-charts` helm repository.

This PR was created automatically by this [github
action](https://github.com/grafana/oncall/blob/dev/.github/workflows/helm_release_pr.yml).

Co-authored-by: GitHub Actions <actions@github.com>
2023-02-23 15:30:24 +01:00
GitHub Actions
6ab21d8181 Release oncall Helm chart 1.1.28 2023-02-23 07:57:16 +00:00
GitHub Actions
85de04e776 Release oncall Helm chart 1.1.27 2023-02-22 06:55:56 +00:00