Commit graph

104 commits

Author SHA1 Message Date
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
GitHub Actions
505fd43ed7 Release oncall Helm chart 1.1.26 2023-02-20 19:12:23 +00:00
GitHub Actions
be39e91fa6 Release oncall Helm chart 1.1.24 2023-02-16 13:15:39 +00:00
GitHub Actions
e710287ad1 Release oncall Helm chart 1.1.23 2023-02-06 14:36:14 +00:00
GitHub Actions
834900c743 Release oncall Helm chart 1.1.22 2023-02-03 13:10:47 +00:00
GitHub Actions
5b86eb3979 Release oncall Helm chart 1.1.21 2023-02-02 15:24:20 +00:00
Vadim Stepanov
ce713231a0
Merge pull request #1275 from grafana/dev
Merge dev to main
2023-02-02 15:07:50 +00:00
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
GitHub Actions
15bb78b9c4 Release oncall Helm chart 1.1.20 2023-01-30 13:27:52 +00:00
Ildar Iskhakov
af292f33d6
Update Chart.yaml 2023-01-30 20:42:45 +08:00
Ildar Iskhakov
3a5395297a
Delete Chart.lock 2023-01-30 20:34:27 +08:00
GitHub Actions
6635466217 Release oncall Helm chart 1.1.19 2023-01-25 04:18:42 +00:00
Vadim Stepanov
33af256aec
lint 2023-01-12 18:37:14 +00:00
Ildar Iskhakov
bf11857d1d
Update README.md 2023-01-12 22:32:53 +08:00
Ed Welch
6231eff0c0
Remove helm chart signing (#1126)
# What this PR does

Please See https://github.com/grafana/helm-charts/pull/2107

## Which issue(s) this PR fixes

## Checklist

- [ ] Tests updated
- [ ] Documentation added
- [ ] `CHANGELOG.md` updated
2023-01-12 19:02:44 +08:00
Tom Mitchell
ccbe8259c9
correct values file stub for slack commandName (#1093)
# What this PR does

The templates actually generate the SLACK_SLASH_COMMAND_NAME envvar from
`.Values.oncall.slack.commandName`, not `command`. This commit changes
the default values file to reflect this.

## Which issue(s) this PR fixes

#1092 

## Checklist

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

^ Are these applicable with regards to updating the helm chart, not the
core application? I did take the time to test both the default and
changed value after this change in a kubernetes deployment.

Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
2023-01-12 08:03:33 +01:00
Juris Pavļučenkovs
327b7121ac
Helm: define engine update strategy in values.yaml (#985)
# What this PR does

Now it is possible to change engine deployment update strategy in
values.yaml.
## Which issue(s) this PR fixes

This is due to #334 and #316, as with rolling update, race conditions
might happen when there is still an old engine pod running.

Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
2022-12-20 13:59:19 +01:00
Erikas Truskauskas
c1307a44d7
Make job-migrate ttlSecondsAfterFinished customizable (#957)
Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
2022-12-07 09:10:10 +01:00
Joey Orlando
427dd4b5f7
helm chart v1.0.13 - update appVersion to v1.1.5 + change image.pullPolicy to "Always" (#937) 2022-12-02 13:27:37 +01:00
Joey Orlando
c08eeb72a3
add precommit rules for markdown/json files (#915)
* add markdownlint precommit steps + fix existing errors

* prettier json linting
2022-12-01 14:26:54 +01:00
Michael Derynck
bd275848dc
Merge pull request #883 from grafana/dev
Merge dev to main
2022-11-22 18:36:17 +00:00
Yulya Artyukhina
381520ee13
Get rid of installation token + add a bunch of tests (#624)
* Get rid of installation token (for OSS installations)

This is done by being required to supply the grafana API URL as an
environment variable on the backend. Additionally, optionally an OnCall
API URL environment variable can be passed in to the frontend (this basically
allows completely skipping the need to configure anything).
- deduplicated a lot of the sync logic on the frontend + made
error message more useful and consistent
- Split PluginConfigPage component into several subcomponents
(making it easier to test each individual component)
- Moved RootWithLoader (from plugin/GrafanaPluginRootPage) into its own
subcomponent (making it easier to test)
- Added tests for pre-existing components that were touched:
  - PluginConfigPage component (and its new subcomponents)
  - state/plugin and state/rootBaseStore functions
  - apps.grafana_plugin django app

Helm changes:
- add GRAFANA_API_URL to oncall.env
- some yaml autoformatting changes
- remove reference to python manage.py issue_invite_for_the_frontend --override

Co-authored-by: Joey Orlando <joseph.t.orlando@gmail.com>
2022-11-21 16:26:00 +01:00
Ildar Iskhakov
d26f76fea0
Add new ci pipeline: helm chart end to end testing (#855) 2022-11-21 16:10:25 +01:00
Chinthiti Wisetsombat
cb551d4bd5
Helm chart: allow using existing secrets for oncall secrets, slack, and telegram (#718)
* chart: allow to use oncall env from existing secret

* chart: slack credentials from existing secret

* chart: telegram token from existing secret

* chart: fix mirage cipher IV length

* chart: restore mirage cipher IV default and remove it from secret

* chart: add keys for existing oncall secret

* chart: add keys for existing slack secret

* chart: add keys for existing telegram secret

* chart: change key existingSecretName to existingSecret

Co-authored-by: Ildar Iskhakov <Ildar.iskhakov@grafana.com>
2022-11-20 12:22:14 +08:00
Ildar Iskhakov
b7fd452ec5
Update Chart.yaml 2022-11-11 20:44:20 +08:00
Vadim Stepanov
131b7e7c5a
helm: allow empty smtp password, bump chart version (#797)
* helm: allow empty smtp password

* don't create the secret in case it's empty

* helm: set EMAIL_USE_TLS to true by default
2022-11-08 12:00:42 +00:00
Ildar Iskhakov
e7641b7539
Fix helm values.yaml, bump helm version (#792) 2022-11-08 17:10:26 +08:00
Ildar Iskhakov
08fc0d1360
Update Chart.yaml 2022-11-04 13:22:56 +08:00
Ildar Iskhakov
50ffb7b7b8
Fix missing RABBITMQ_USERNAME field for new installations (#775) 2022-11-04 13:21:43 +08:00
Vadim Stepanov
e2456315af
Allow no-auth SMTP connection for email notifications (#759)
* DEFAULT_FROM_EMAIL -> EMAIL_FROM

* add EMAIL_FROM live setting

* EMAIL_FROM -> EMAIL_FROM_ADDRESS

* merge dev

* add test for get_from_email

* allow live settings to be null on internal API

* remove redundant tests
2022-11-03 16:18:37 +00:00
David van der Spek
c01068898a
Helm: allow for using existing secret for RabbitMQ (#761)
* init rabbitmq existing secret

Signed-off-by: David van der Spek <vanderspek.david@gmail.com>

* bump chart

Signed-off-by: David van der Spek <vanderspek.david@gmail.com>

Signed-off-by: David van der Spek <vanderspek.david@gmail.com>
2022-11-03 15:31:00 +08:00
Ildar Iskhakov
12da061d6e
Update Chart.yaml 2022-11-02 17:40:33 +08:00
Ildar Iskhakov
ed5262f2f5
Add BROKER_TYPE env var to the helm chart (#697) 2022-11-02 17:37:41 +08:00
th30nlyw4y
f1af588552
Add ability to set more env vars via config & change env template & f… (#674)
* Add ability to set more env vars via config & change env template & fix env spacing

* Fix default redirectHost value

* Additional Twilio env vars + modified Twilio vars flow

* Fix wrong phoneNumber rendering

Co-authored-by: Ildar Iskhakov <Ildar.iskhakov@grafana.com>
2022-11-02 17:32:05 +08:00
David van der Spek
d3dfaebab7
Helm chart: add support for PostgreSQL (#661)
* add support for PostgreSQL

Signed-off-by: DavidSpek <vanderspek.david@gmail.com>

* disable postgres by default

Signed-off-by: DavidSpek <vanderspek.david@gmail.com>

* fix external postgres existing secret

Signed-off-by: DavidSpek <vanderspek.david@gmail.com>

* disable ingress annotations and tls by default

Signed-off-by: DavidSpek <vanderspek.david@gmail.com>

* fix exec command in notes

Signed-off-by: DavidSpek <vanderspek.david@gmail.com>

* Add review comments + cleanup README

Signed-off-by: DavidSpek <vanderspek.david@gmail.com>

Signed-off-by: DavidSpek <vanderspek.david@gmail.com>
2022-11-02 15:34:41 +08:00
Ildar Iskhakov
7cc01e0585
Merge pull request #670 from pluralsh/helm-smtp
Helm chart: add smtp settings to helm chart
2022-10-24 11:28:22 +08:00
Ildar Iskhakov
82d4746fd3
Merge pull request #665 from alfrunes/helm-fix-slack
fix(helm): Update the Slack helm values and environment variables
2022-10-20 13:41:58 +08:00
David van der Spek
8eed99865a
fix using secret for smtp 2022-10-19 15:01:49 +02:00