1
0
mirror of https://github.com/helm/charts.git synced 2026-02-14 10:00:02 +00:00

fix: do not fail user-create container when user already exists (#20106)

Signed-off-by: wilmardo <info@wilmardenouden.nl>
This commit is contained in:
Wilmar den Ouden
2020-01-14 12:25:09 +01:00
committed by Kubernetes Prow Robot
parent b7be61462e
commit 4c39ce95e1
2 changed files with 5 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
apiVersion: v1
description: Sentry is a cross-platform crash reporting and aggregation platform.
name: sentry
version: 3.2.1
version: 3.2.2
appVersion: 9.1.2
keywords:
- debugging

View File

@@ -39,7 +39,10 @@ spec:
containers:
- name: user-create-job
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
command: ["sentry","createuser","--no-input","--email", "{{ .Values.user.email }}", "--superuser","--password","$(SENTRY_USER_PASSWORD)"]
command: ["/bin/bash"]
args:
- "-c"
- "export output=$(sentry createuser --no-input --email {{ .Values.user.email }} --superuser --password $SENTRY_USER_PASSWORD) || if echo $output | grep -q 'already exists'; then exit 0; else exit 1; fi"
env:
- name: SENTRY_SECRET_KEY
valueFrom: