Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions charts/sentry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ Note: this table is incomplete, so have a look at the values.yaml in case you mi
| nginx.service.ports.http | int | `80` | |
| nginx.service.type | string | `"ClusterIP"` | |
| openai | object | `{}` | |
| pagerduty | object | `{}` | |
| pgbouncer.affinity | object | `{}` | |
| pgbouncer.authType | string | `"md5"` | |
| pgbouncer.enabled | bool | `false` | |
Expand Down
11 changes: 11 additions & 0 deletions charts/sentry/templates/_helper.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,17 @@ Set discord
key: {{ default "bot-token" .Values.discord.existingSecretBotToken }}
{{- end }}

{{/*
Set pagerduty
*/}}
{{- if .Values.pagerduty.existingSecret }}
- name: PAGERDUTY_APP_ID
valueFrom:
secretKeyRef:
name: {{ .Values.pagerduty.existingSecret }}
key: {{ default "app-id" .Values.pagerduty.existingSecretAppId }}
{{- end }}

{{/*
Set github app
*/}}
Expand Down
14 changes: 14 additions & 0 deletions charts/sentry/templates/sentry/_helper-sentry.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ config.yml: |-
discord.bot-token: {{ .Values.discord.botToken | quote }}
{{ end }}

###########
# Pagerduty #
###########
{{- if and (.Values.pagerduty.appId) (not .Values.pagerduty.existingSecret) }}
pagerduty.app-id: {{ .Values.pagerduty.appId | quote }}
{{- end }}

#########
# Redis #
#########
Expand Down Expand Up @@ -676,6 +683,13 @@ sentry.conf.py: |-
SENTRY_OPTIONS['discord.bot-token'] = os.environ.get("DISCORD_BOT_TOKEN")
{{- end }}

{{- if .Values.pagerduty.existingSecret }}
#############
# PAGERDUTY #
#############
SENTRY_OPTIONS['pagerduty.app-id'] = os.environ.get("PAGERDUTY_APP_ID")
{{- end }}

{{- if .Values.google.existingSecret }}
#########
# GOOGLE #
Expand Down
7 changes: 7 additions & 0 deletions charts/sentry/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2114,6 +2114,13 @@ discord: {}
# existingSecretBotToken: "" # by default "bot-token"
# Reference -> https://develop.sentry.dev/integrations/discord/

pagerduty: {}
# pagerduty:
# appId: ""
# existingSecret: "xxxxx"
# existingSecretAppId: "" # by default "app-id"
# Reference -> https://develop.sentry.dev/integrations/pagerduty/

openai: {}
# existingSecret: "xxxxx"
# existingSecretKey: "" # by default "api-token"
Expand Down
Loading