History

fix: issue when a Helm create user job returns more than once (#15321)

Jeff Haynie committed 4 years ago

Commit ed02ee41 parent ba9691a1 file · +1 −1Browse files

Unified · Split

helm/minio/templates/_helper_create_user.txt+1−1
@@ -59,9 +59,9 @@ createUser() { · 58 unmodified lines
59 rm -f $MINIO_ACCESSKEY_SECRETKEY_TMP59 rm -f $MINIO_ACCESSKEY_SECRETKEY_TMP
60 return 160 return 1
61 fi61 fi
62 USER=$(head -1 $MINIO_ACCESSKEY_SECRETKEY_TMP)
62 # Create the user if it does not exist63 # Create the user if it does not exist
63 if ! checkUserExists ; then64 if ! checkUserExists ; then
64 USER=$(head -1 $MINIO_ACCESSKEY_SECRETKEY_TMP)
65 echo "Creating user '$USER'"65 echo "Creating user '$USER'"
66 cat $MINIO_ACCESSKEY_SECRETKEY_TMP | ${MC} admin user add myminio66 cat $MINIO_ACCESSKEY_SECRETKEY_TMP | ${MC} admin user add myminio
67 else67 else

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t