Skip to content

Commit 4778949

Browse files
authored
fix: pass postgresql password to user-create job (#55)
Additional fix for #52
1 parent 0427a1f commit 4778949

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

sentry/templates/hooks/user-create.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ spec:
4040
args:
4141
- "-c"
4242
- "export output=$(sentry createuser --no-input --email {{ .Values.user.email }} --superuser --password {{ .Values.user.password }}) || true"
43+
{{- if .Values.postgresql.enabled }}
44+
env:
45+
- name: POSTGRES_PASSWORD
46+
valueFrom:
47+
secretKeyRef:
48+
name: {{ include "sentry.postgresql.fullname" . }}
49+
key: postgresql-password
50+
{{- end }}
4351
volumeMounts:
4452
- mountPath: /etc/sentry
4553
name: config
@@ -50,4 +58,4 @@ spec:
5058
- name: config
5159
configMap:
5260
name: {{ template "sentry.fullname" . }}-sentry
53-
{{- end -}}
61+
{{- end -}}

0 commit comments

Comments
 (0)