diff --git a/charts/sentry/README.md b/charts/sentry/README.md index 0967cde69..389b49b8a 100644 --- a/charts/sentry/README.md +++ b/charts/sentry/README.md @@ -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` | | diff --git a/charts/sentry/templates/_helper.tpl b/charts/sentry/templates/_helper.tpl index cc1ab85ce..234e5ee47 100644 --- a/charts/sentry/templates/_helper.tpl +++ b/charts/sentry/templates/_helper.tpl @@ -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 */}} diff --git a/charts/sentry/templates/sentry/_helper-sentry.tpl b/charts/sentry/templates/sentry/_helper-sentry.tpl index 08014200e..f991ab5bd 100644 --- a/charts/sentry/templates/sentry/_helper-sentry.tpl +++ b/charts/sentry/templates/sentry/_helper-sentry.tpl @@ -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 # ######### @@ -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 # diff --git a/charts/sentry/values.yaml b/charts/sentry/values.yaml index 9883d389e..05941736c 100644 --- a/charts/sentry/values.yaml +++ b/charts/sentry/values.yaml @@ -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"