diff --git a/swh/templates/graphql/deployment.yaml b/swh/templates/graphql/deployment.yaml --- a/swh/templates/graphql/deployment.yaml +++ b/swh/templates/graphql/deployment.yaml @@ -41,6 +41,19 @@ value: {{ .Values.graphql.logLevel | quote }} - name: TIMEOUT value: {{ .Values.graphql.gunicorn.timeout | quote }} + {{ if .Values.graphql.sentry_enabled -}} + - name: SWH_SENTRY_ENVIRONMENT + value: {{ $.Values.sentry.environment }} + - name: SWH_MAIN_PACKAGE + value: swh.graphql + - name: SWH_SENTRY_DSN + valueFrom: + secretKeyRef: + name: graphql-sentry-secrets + key: sentry-dsn + # 'name' secret must exist & include key "host" + optional: false + {{ end }} volumeMounts: - name: config mountPath: /etc/swh/config.yml diff --git a/swh/values/staging.yaml b/swh/values/staging.yaml --- a/swh/values/staging.yaml +++ b/swh/values/staging.yaml @@ -116,6 +116,7 @@ graphql: enabled: true + sentry_enabled: true backends: storage: host: webapp.internal.staging.swh.network