Skip to content

Commit

Permalink
feat: checksum only for configmap contents (#1228)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimxogus authored May 7, 2024
1 parent 83a0923 commit 97829b0
Show file tree
Hide file tree
Showing 53 changed files with 745 additions and 724 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
36 changes: 36 additions & 0 deletions sentry/templates/_helper-sentry-relay.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{{- define "sentry.relay.config" -}}
{{- $redisHost := include "sentry.redis.host" . -}}
{{- $redisPort := include "sentry.redis.port" . -}}
{{- $redisPass := include "sentry.redis.password" . -}}
config.yml: |-
relay:
{{- if .Values.relay.mode }}
mode: {{ .Values.relay.mode }}
{{- end }}
upstream: "http://{{ template "sentry.fullname" . }}-web:{{ .Values.service.externalPort }}/"
host: 0.0.0.0
port: {{ template "relay.port" }}

processing:
enabled: true
{{- if .Values.geodata.path }}
geoip_path: {{ .Values.geodata.path | quote }}
{{- end }}

kafka_config:
- name: "bootstrap.servers"
value: {{ (include "sentry.kafka.bootstrap_servers_string" .) | quote }}
- name: "message.max.bytes"
value: 50000000 # 50MB or bust

{{- if $redisPass }}
redis: "redis://:{{ $redisPass }}@{{ $redisHost }}:{{ $redisPort }}"
{{- else }}
redis: "redis://{{ $redisHost }}:{{ $redisPort }}"
{{- end }}
topics:
metrics_transactions: ingest-performance-metrics
metrics_sessions: ingest-metrics

{{ .Values.config.relay | nindent 2 }}
{{- end -}}
Loading

0 comments on commit 97829b0

Please sign in to comment.