helm: Make bucket existence check faster (#16321)

This commit is contained in:
Wojtek Czekalski 2022-12-27 13:32:39 -05:00 committed by GitHub
parent 27417459fb
commit aa56c6d51d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,7 @@ connectToMinio() {
# Check if the bucket exists, by using the exit code of `mc ls`
checkBucketExists() {
BUCKET=$1
CMD=$(${MC} ls myminio/$BUCKET > /dev/null 2>&1)
CMD=$(${MC} stat myminio/$BUCKET > /dev/null 2>&1)
return $?
}