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
5959 rm -f $MINIO_ACCESSKEY_SECRETKEY_TMP
6060 return 1
6161 fi
62+ USER=$(head -1 $MINIO_ACCESSKEY_SECRETKEY_TMP)
6263 # Create the user if it does not exist
6364 if ! checkUserExists ; then
64− USER=$(head -1 $MINIO_ACCESSKEY_SECRETKEY_TMP)
6565 echo "Creating user '$USER'"
6666 cat $MINIO_ACCESSKEY_SECRETKEY_TMP | ${MC} admin user add myminio
6767 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