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:
committed by
Kubernetes Prow Robot
parent
b7be61462e
commit
4c39ce95e1
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user