Skip to content

Commit

Permalink
platform-api: add sentry settings
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxpiper committed May 7, 2023
1 parent f244e79 commit eb59c13
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/platform-api/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
name: ushahidi-platform-api
version: 0.0.1-alpha.16
version: 0.0.1-alpha.17
icon: https://github.ushahidi.org/helm-charts/icon.png
30 changes: 30 additions & 0 deletions charts/platform-api/templates/api-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,16 @@ spec:
key: {{ .Values.config.rackspace_filesystem.apikey_secret.key }}
{{- end }}
{{- end }}
{{- if .Values.config.sentry.dsn }}
- name: SENTRY_DSN
value: {{ .Values.config.sentry.dsn | quote }}
- name: SENTRY_ENVIRONMENT
{{- if .Values.config.sentry.environment }}
value: {{ .Values.config.sentry.environment | quote }}
{{- else }}
value: {{ .Values.config.appenv | quote }}
{{- end }}
{{- end }}
# {{- if .Values.config.s3_filesystem }}
# {{- end }}
- { name: ENABLE_NGINX, value: "true" }
Expand Down Expand Up @@ -486,6 +496,16 @@ spec:
key: {{ .Values.config.rackspace_filesystem.apikey_secret.key }}
{{- end }}
{{- end }}
{{- if .Values.config.sentry.dsn }}
- name: SENTRY_DSN
value: {{ .Values.config.sentry.dsn | quote }}
- name: SENTRY_ENVIRONMENT
{{- if .Values.config.sentry.environment }}
value: {{ .Values.config.sentry.environment | quote }}
{{- else }}
value: {{ .Values.config.appenv | quote }}
{{- end }}
{{- end }}
# {{- if .Values.config.s3_filesystem }}
# {{- end }}
- { name: ENABLE_NGINX, value: "false" }
Expand Down Expand Up @@ -747,6 +767,16 @@ spec:
key: {{ .Values.config.rackspace_filesystem.apikey_secret.key }}
{{- end }}
{{- end }}
{{- if .Values.config.sentry.dsn }}
- name: SENTRY_DSN
value: {{ .Values.config.sentry.dsn | quote }}
- name: SENTRY_ENVIRONMENT
{{- if .Values.config.sentry.environment }}
value: {{ .Values.config.sentry.environment | quote }}
{{- else }}
value: {{ .Values.config.appenv | quote }}
{{- end }}
{{- end }}
# {{- if .Values.config.s3_filesystem }}
# {{- end }}
- { name: ENABLE_NGINX, value: "false" }
Expand Down
3 changes: 3 additions & 0 deletions charts/platform-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ config:
# name:
# key:

# sentry:
# dsn:
# # environment:

##
## Additional settings provided in .env file, note that this only works for
Expand Down

0 comments on commit eb59c13

Please sign in to comment.