From 391de8ca9ec68fe4cd85bba6c82348386fc79842 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 9 Oct 2024 11:54:09 -0400 Subject: [PATCH] fix(backend): set default value to true for ForcePathStyle (#11281) Signed-off-by: zazulam --- backend/src/v2/objectstore/config.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/src/v2/objectstore/config.go b/backend/src/v2/objectstore/config.go index cc8d6372eb6..602357b1864 100644 --- a/backend/src/v2/objectstore/config.go +++ b/backend/src/v2/objectstore/config.go @@ -18,12 +18,13 @@ package objectstore import ( "encoding/json" "fmt" - "github.com/golang/glog" "os" "path" "regexp" "strconv" "strings" + + "github.com/golang/glog" ) // The endpoint uses Kubernetes service DNS name with namespace: @@ -228,6 +229,8 @@ func StructuredS3Params(p map[string]string) (*S3Params, error) { return nil, err } sparams.ForcePathStyle = boolVal + } else { + sparams.ForcePathStyle = true } return sparams, nil }