Skip to content

Commit

Permalink
feat: add logging and worker settings to Sentry web deployment (#1459)
Browse files Browse the repository at this point in the history
  • Loading branch information
patsevanton authored Sep 16, 2024
1 parent 2464bbf commit f0427e2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
17 changes: 16 additions & 1 deletion charts/sentry/templates/sentry/web/deployment-sentry-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,22 @@ spec:
- name: {{ .Chart.Name }}-web
image: "{{ template "sentry.image" . }}"
imagePullPolicy: {{ default "IfNotPresent" .Values.images.sentry.pullPolicy }}
command: ["sentry", "run", "web"]
command: ["sentry"]
args:
- "run"
- "web"
{{- if .Values.sentry.web.workers }}
- "--workers"
- "{{ .Values.sentry.web.workers }}"
{{- end }}
{{- if .Values.sentry.web.logLevel }}
- "--loglevel"
- "{{ .Values.sentry.web.logLevel }}"
{{- end }}
{{- if .Values.sentry.web.logFormat }}
- "--logformat"
- "{{ .Values.sentry.web.logFormat }}"
{{- end }}
ports:
- containerPort: {{ template "sentry.port" }}
env:
Expand Down
4 changes: 3 additions & 1 deletion charts/sentry/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ sentry:
# customCA:
# secretName: custom-ca
# item: ca.crt

# logLevel: "WARNING" # DEBUG|INFO|WARNING|ERROR|CRITICAL|FATAL
# logFormat: "human" # human|machine
autoscaling:
enabled: false
minReplicas: 2
Expand All @@ -193,6 +194,7 @@ sentry:
topologySpreadConstraints: []
volumes: []
volumeMounts: []
# workers: 3

features:
orgSubdomains: false
Expand Down

0 comments on commit f0427e2

Please sign in to comment.