Skip to content

Commit

Permalink
upgrade sentry to 21.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
alekitto committed May 21, 2021
1 parent 6faf90c commit 0c33e58
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 22 deletions.
4 changes: 2 additions & 2 deletions sentry/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: sentry
description: A Helm chart for Kubernetes
type: application
version: 11.2.2
appVersion: 21.4.1
version: 11.3.0
appVersion: 21.5.1
dependencies:
- name: redis
repository: https://charts.bitnami.com/bitnami
Expand Down
10 changes: 10 additions & 0 deletions sentry/templates/_helper.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -365,3 +365,13 @@ Set RabbitMQ host
{{ .Values.rabbitmq.host }}
{{- end -}}
{{- end -}}

{{/*
Common Snuba environment variables
*/}}
{{- define "sentry.snuba.env" -}}
- name: SNUBA_SETTINGS
value: /etc/snuba/settings.py
- name: DEFAULT_BROKERS
value: {{ printf "%s:%s" (include "sentry.kafka.host" .) (include "sentry.kafka.port" .) | quote }}
{{- end -}}
3 changes: 0 additions & 3 deletions sentry/templates/configmap-snuba.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,4 @@ data:
{{- end }}
REDIS_DB = int(env("REDIS_DB", 1))
# Processor/Writer Options
DEFAULT_BROKERS = [{{ printf "%s:%s" (include "sentry.kafka.host" .) (include "sentry.kafka.port" .) | quote }}]
{{ .Values.config.snubaSettingsPy | indent 4 }}
5 changes: 2 additions & 3 deletions sentry/templates/deployment-snuba-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ spec:
ports:
- containerPort: {{ template "snuba.port" }}
env:
- name: SNUBA_SETTINGS
value: /etc/snuba/settings.py
{{ include "sentry.snuba.env" . | indent 8 }}
{{- if .Values.snuba.api.env }}
{{ toYaml .Values.snuba.api.env | indent 8 }}
{{- end }}
Expand Down Expand Up @@ -103,4 +102,4 @@ spec:
name: {{ template "sentry.fullname" . }}-snuba
{{- if .Values.snuba.api.volumes }}
{{ toYaml .Values.snuba.api.volumes | indent 8 }}
{{- end }}
{{- end }}
3 changes: 1 addition & 2 deletions sentry/templates/deployment-snuba-consumer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ spec:
ports:
- containerPort: {{ template "snuba.port" }}
env:
- name: SNUBA_SETTINGS
value: /etc/snuba/settings.py
{{ include "sentry.snuba.env" . | indent 8 }}
{{- if .Values.snuba.consumer.env }}
{{ toYaml .Values.snuba.consumer.env | indent 8 }}
{{- end }}
Expand Down
3 changes: 1 addition & 2 deletions sentry/templates/deployment-snuba-outcomes-consumer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ spec:
ports:
- containerPort: {{ template "snuba.port" }}
env:
- name: SNUBA_SETTINGS
value: /etc/snuba/settings.py
{{ include "sentry.snuba.env" . | indent 8 }}
{{- if .Values.snuba.outcomesConsumer.env }}
{{ toYaml .Values.snuba.outcomesConsumer.env | indent 8 }}
{{- end }}
Expand Down
3 changes: 1 addition & 2 deletions sentry/templates/deployment-snuba-replacer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ spec:
ports:
- containerPort: {{ template "snuba.port" }}
env:
- name: SNUBA_SETTINGS
value: /etc/snuba/settings.py
{{ include "sentry.snuba.env" . | indent 8 }}
{{- if .Values.snuba.replacer.env }}
{{ toYaml .Values.snuba.replacer.env | indent 8 }}
{{- end }}
Expand Down
3 changes: 1 addition & 2 deletions sentry/templates/deployment-snuba-sessions-consumer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ spec:
ports:
- containerPort: {{ template "snuba.port" }}
env:
- name: SNUBA_SETTINGS
value: /etc/snuba/settings.py
{{ include "sentry.snuba.env" . | indent 8 }}
{{- if .Values.snuba.sessionsConsumer.env }}
{{ toYaml .Values.snuba.sessionsConsumer.env | indent 8 }}
{{- end }}
Expand Down
3 changes: 1 addition & 2 deletions sentry/templates/deployment-snuba-transactions-consumer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ spec:
ports:
- containerPort: {{ template "snuba.port" }}
env:
- name: SNUBA_SETTINGS
value: /etc/snuba/settings.py
{{ include "sentry.snuba.env" . | indent 8 }}
{{- if .Values.snuba.transactionsConsumer.env }}
{{ toYaml .Values.snuba.transactionsConsumer.env | indent 8 }}
{{- end }}
Expand Down
3 changes: 1 addition & 2 deletions sentry/templates/hooks/snuba-db-init.job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@ spec:
env:
- name: LOG_LEVEL
value: debug
- name: SNUBA_SETTINGS
value: /etc/snuba/settings.py
- name: CLICKHOUSE_SINGLE_NODE
value: "true"
{{ include "sentry.snuba.env" . | indent 8 }}
{{- if .Values.snuba.dbInitJob.env }}
{{ toYaml .Values.snuba.dbInitJob.env | indent 8 }}
{{- end }}
Expand Down
3 changes: 1 addition & 2 deletions sentry/templates/hooks/snuba-migrate.job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@ spec:
env:
- name: LOG_LEVEL
value: debug
- name: SNUBA_SETTINGS
value: /etc/snuba/settings.py
- name: CLICKHOUSE_SINGLE_NODE
value: "true"
{{ include "sentry.snuba.env" . | indent 8 }}
{{- if .Values.snuba.migrateJob.env }}
{{ toYaml .Values.snuba.migrateJob.env | indent 8 }}
{{- end }}
Expand Down

0 comments on commit 0c33e58

Please sign in to comment.