-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Upgrade sentry to 24.2.0 (#912)
* Upgrade sentry to 24.2.0 This has a ton of changes, but all seem functional after testing. The big issue is they borked a db migration and didn't actually fix it, so this is going to need to be a breaking change. Details here: getsentry/self-hosted#2758 * possibly working migration cleanup * remove breaking: true
- Loading branch information
1 parent
e936d16
commit b4baff6
Showing
7 changed files
with
73 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: sentry-migration-cleanup | ||
annotations: | ||
# This is what defines this resource as a hook. Without this line, the | ||
# job is considered part of the release. | ||
"helm.sh/hook": "post-install,post-upgrade" | ||
"helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation" | ||
"helm.sh/hook-weight": "5" | ||
spec: | ||
backoffLimit: 5 | ||
template: | ||
metadata: | ||
name: sentry-migration-cleanup | ||
spec: | ||
restartPolicy: Never | ||
containers: | ||
- name: db-cleanup-job | ||
image: postgres:13-alpine | ||
imagePullPolicy: IfNotPresent | ||
command: | ||
- /bin/sh | ||
- -c | ||
- | | ||
indexes=$(psql -qaAt -P pager=off -c "SELECT indexname, indexdef FROM pg_indexes WHERE tablename = 'sentry_groupedmessage';") | ||
if [[ $indexes == *"sentry_groupedmessage_project_id_id_515aaa7e_uniq"* ]]; then | ||
psql -qAt -c "DROP INDEX sentry_groupedmessage_project_id_id_515aaa7e_uniq;" | ||
fi | ||
env: | ||
- name: PGPASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ .Values.sentry.externalPostgresql.existingSecret }} | ||
key: {{ .Values.sentry.externalPostgresql.existingSecretKey }} | ||
- name: PGHOST | ||
value: {{ .Values.sentry.externalPostgresql.host }} | ||
- name: PGUSER | ||
value: {{ .Values.sentry.externalPostgresql.username }} | ||
- name: PGDATABASE | ||
value: {{ .Values.sentry.externalPostgresql.database }} | ||
- name: PGSSLMODE | ||
value: {{ .Values.sentry.externalPostgresql.sslMode }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters