Skip to content

Commit

Permalink
fix: erroneous formating in relay configmap (#203)
Browse files Browse the repository at this point in the history
Due to trailing minuses in the conditionals, the yaml is geneated in an erroneous way such that there are no newlines before and after the relay.mode yaml key.
This leads to invalid yaml syntax causing the relay pod to crash.

fixes: #202
Signed-off-by: Daniel Schneider <daniel.schneider@eramux.com>
  • Loading branch information
dnlsndr authored Oct 11, 2020
1 parent c7934ae commit a42d41f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sentry/templates/configmap-relay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ metadata:
data:
config.yml: |-
relay:
{{- if .Values.relay.mode -}}
{{- if .Values.relay.mode }}
mode: {{ .Values.relay.mode }}
{{- end -}}
{{- end }}
upstream: "http://{{ template "sentry.fullname" . }}-web:{{ .Values.service.externalPort }}/"
host: 0.0.0.0
port: {{ template "relay.port" }}
Expand Down

0 comments on commit a42d41f

Please sign in to comment.