Skip to content

Commit 98308d5

Browse files
committed
fix
1 parent 9ab8723 commit 98308d5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

addons/minio/templates/cmpd.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ spec:
122122
- /bin/sh
123123
- -c
124124
- |
125-
if mc config host add minio http://127.0.0.1:9000 $MINIO_ROOT_USER $MINIO_ROOT_PASSWORD &>/dev/null; then
125+
# Set alias and check MinIO readiness using mc command
126+
mc alias set local http://127.0.0.1:9000 $MINIO_ROOT_USER $MINIO_ROOT_PASSWORD >/dev/null 2>&1
127+
if mc admin info local >/dev/null 2>&1; then
126128
echo -n "readwrite"
127129
else
128130
echo -n "notready"

0 commit comments

Comments
 (0)