From 5fcb1cfd3184557313fd6461b66baa57dfe31ffc Mon Sep 17 00:00:00 2001 From: mundry <1453314+mundry@users.noreply.github.com> Date: Fri, 22 Sep 2023 20:32:24 +0200 Subject: [PATCH] fix: broken bucket versioning support in community helm chart (#18003) --- 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 ea29f334a..98d9ead17 100644 --- a/helm/minio/templates/_helper_create_bucket.txt +++ b/helm/minio/templates/_helper_create_bucket.txt @@ -85,7 +85,7 @@ if ! checkBucketExists $BUCKET ; then # set versioning for bucket if objectlocking is disabled or not set - if [ -z $OBJECTLOCKING ] ; then + if [ $OBJECTLOCKING = false ] ; then if [ ! -z $VERSIONING ] ; then if [ $VERSIONING = true ] ; then echo "Enabling versioning for '$BUCKET'"