Skip to content

Commit

Permalink
fix broken value mapping with sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
doxthree committed May 14, 2024
1 parent 32e8378 commit ee7dd03
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charts/vaas/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: vaas
version: 1.4.4
version: 1.4.5
description: Deployment of a Verdict-as-a-Service on-premise instance
maintainers:
- name: G DATA CyberDefense AG
Expand Down
14 changes: 14 additions & 0 deletions charts/vaas/templates/gateway/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,34 @@ spec:
value: {{ .Release.Name }}
- name: ASPNETCORE_ENVIRONMENT
value: {{ .Release.Name }}
{{- if .Values.sentry.environment }}
- name: Sentry__Environment
value: {{ .Values.sentry.environment | quote }}
{{- end }}
{{- if .Values.sentry.dsn }}
- name: Sentry__Dsn
value: {{ .Values.sentry.dsn | quote }}
{{- end }}
{{- if .Values.sentry.release }}
- name: Sentry__Release
value: {{ .Values.sentry.release | quote }}
{{- end }}
{{- if .Values.sentry.maxBreadcrumbs }}
- name: Sentry__MaxBreadcrumbs
value: {{ .Values.sentry.maxBreadcrumbs | quote }}
{{- end }}
{{- if .Values.sentry.maxQueueItems }}
- name: Sentry__MaxQueueItems
value: {{ .Values.sentry.maxQueueItems | quote }}
{{- end }}
{{- if .Values.sentry.enableTracing }}
- name: Sentry__EnableTracing
value: {{ .Values.sentry.enableTracing | quote }}
{{- end }}
{{- if .Values.sentry.tracesSampleRate }}
- name: Sentry__TracesSampleRate
value: {{ .Values.sentry.tracesSampleRate | quote }}
{{- end }}
- name: MaxAnalysisDuration
value: {{ include "common.secondsToHHMMSS" .Values.gateway.terminationGracePeriodSeconds | quote }}
- name: FileCloudVerdictSource__Enable
Expand Down
16 changes: 8 additions & 8 deletions charts/vaas/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ cloud:
allowlistLookup:
enabled: true

sentry:
dsn: ""
environment: ""
release: ""
maxBreadcrumbs: ""
maxQueueItems: ""
enableTracing: ""
tracesSampleRate: ""
# sentry:
# dsn: ""
# environment: ""
# release: ""
# maxBreadcrumbs: ""
# maxQueueItems: ""
# enableTracing: ""
# tracesSampleRate: ""

gateway:
ingress:
Expand Down

0 comments on commit ee7dd03

Please sign in to comment.