diff --git a/sentry/helm/sentry/Chart.lock b/sentry/helm/sentry/Chart.lock index 000e85406..fab3135d1 100644 --- a/sentry/helm/sentry/Chart.lock +++ b/sentry/helm/sentry/Chart.lock @@ -1,7 +1,7 @@ dependencies: - name: sentry repository: https://pluralsh.github.io/plural-helm-charts - version: 19.4.0-plural2 + version: 19.4.1-plural - name: postgres repository: https://pluralsh.github.io/module-library version: 0.2.1 @@ -14,5 +14,5 @@ dependencies: - name: runbook repository: https://pluralsh.github.io/module-library version: 0.1.1 -digest: sha256:2dfac5d86335400389a3535ec23bf866c9e95772aa96c52e926ac0fe4f0eb7cb -generated: "2023-11-16T14:34:25.463823-05:00" +digest: sha256:4d625168ccf5ae0877bad47b01c4d547c5178b379e8152ab67a46de5ddc031fb +generated: "2024-05-15T20:15:49.992956-04:00" diff --git a/sentry/helm/sentry/Chart.yaml b/sentry/helm/sentry/Chart.yaml index a56c1cc8c..1ed481b1e 100644 --- a/sentry/helm/sentry/Chart.yaml +++ b/sentry/helm/sentry/Chart.yaml @@ -2,11 +2,11 @@ apiVersion: v2 name: sentry description: A Helm chart for deploying sentry on plural type: application -version: 0.3.4 -appVersion: "23.6.1" +version: 0.3.6 +appVersion: "24.2.0" dependencies: - name: sentry - version: 19.4.0-plural2 + version: 19.4.1-plural repository: https://pluralsh.github.io/plural-helm-charts - name: postgres version: 0.2.1 diff --git a/sentry/helm/sentry/charts/sentry-19.4.0-plural2.tgz b/sentry/helm/sentry/charts/sentry-19.4.0-plural2.tgz deleted file mode 100644 index 4731d5ca7..000000000 Binary files a/sentry/helm/sentry/charts/sentry-19.4.0-plural2.tgz and /dev/null differ diff --git a/sentry/helm/sentry/charts/sentry-19.4.1-plural.tgz b/sentry/helm/sentry/charts/sentry-19.4.1-plural.tgz new file mode 100644 index 000000000..abc4f4db7 Binary files /dev/null and b/sentry/helm/sentry/charts/sentry-19.4.1-plural.tgz differ diff --git a/sentry/helm/sentry/deps.yaml b/sentry/helm/sentry/deps.yaml index 1364cd90a..73caee9ea 100644 --- a/sentry/helm/sentry/deps.yaml +++ b/sentry/helm/sentry/deps.yaml @@ -4,6 +4,7 @@ metadata: application: true description: Deploys sentry crafted for the target cloud spec: + breaking: true dependencies: - type: helm name: bootstrap diff --git a/sentry/helm/sentry/templates/job.yaml b/sentry/helm/sentry/templates/job.yaml new file mode 100644 index 000000000..1d90545b0 --- /dev/null +++ b/sentry/helm/sentry/templates/job.yaml @@ -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 }} \ No newline at end of file diff --git a/sentry/helm/sentry/values.yaml b/sentry/helm/sentry/values.yaml index 9530c8c7b..4fa354f09 100644 --- a/sentry/helm/sentry/values.yaml +++ b/sentry/helm/sentry/values.yaml @@ -196,16 +196,16 @@ sentry: images: symbolicator: repository: dkr.plural.sh/sentry/getsentry/symbolicator - tag: 23.6.1 + tag: 24.2.0 snuba: repository: dkr.plural.sh/sentry/getsentry/snuba - tag: 23.6.1 + tag: 24.2.0 sentry: repository: dkr.plural.sh/sentry/getsentry/sentry - tag: 23.6.1-plural3.1.1 + tag: 24.2.0-plural3.9.0 relay: repository: dkr.plural.sh/sentry/getsentry/relay - tag: 23.6.1 + tag: 24.2.0 serviceAccount: enabled: true @@ -514,6 +514,24 @@ sentry: key: password - name: BROKER_URL value: amqp://$(RABBITMQ_USER):$(RABBITMQ_PASSWORD)@rabbitmq.rabbitmq:5672/sentry + postProcessForwardIssuePlatform: + resources: + requests: + cpu: 50m + memory: 300Mi + env: + - name: RABBITMQ_USER + valueFrom: + secretKeyRef: + name: sentry-rabbitmq-user-credentials + key: username + - name: RABBITMQ_PASSWORD + valueFrom: + secretKeyRef: + name: sentry-rabbitmq-user-credentials + key: password + - name: BROKER_URL + value: amqp://$(RABBITMQ_USER):$(RABBITMQ_PASSWORD)@rabbitmq.rabbitmq:5672/sentry relay: resources: requests: @@ -789,6 +807,7 @@ sentry: host: kafka-kafka-bootstrap.kafka hooks: + enabled: true activeDeadlineSeconds: 600 dbCheck: image: