From aa56c6d51dc6936264802234890e2429989d8f05 Mon Sep 17 00:00:00 2001 From: Wojtek Czekalski Date: Tue, 27 Dec 2022 13:32:39 -0500 Subject: [PATCH] helm: Make bucket existence check faster (#16321) --- helm/minio/templates/_helper_create_bucket.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/minio/templates/_helper_create_bucket.txt b/helm/minio/templates/_helper_create_bucket.txt index 90755aa5e..ea29f334a 100644 --- a/helm/minio/templates/_helper_create_bucket.txt +++ b/helm/minio/templates/_helper_create_bucket.txt @@ -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 $? }