Skip to content

Commit

Permalink
fix: fixed s3 certificate config (#458)
Browse files Browse the repository at this point in the history
Signed-off-by: Aylei <[email protected]>
  • Loading branch information
aylei authored Dec 8, 2023
1 parent b61c9de commit 9e1e720
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/controllers/common/fileservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,14 @@ func sharedFileServiceConfig(sp v1alpha1.SharedStorageProvider, cache *v1alpha1.
}
s3Config["key-prefix"] = keyPrefix

m["s3"] = s3Config

if s3.CertificateRef != nil {
var certFiles []string
for _, f := range s3.CertificateRef.Files {
certFiles = append(certFiles, fmt.Sprintf("%s/%s", S3CertificatePath, f))
}
m["cert-files"] = certFiles
s3Config["cert-files"] = certFiles
}
m["s3"] = s3Config
}
// filesystem file service config
if fs := sp.FileSystem; fs != nil {
Expand Down

0 comments on commit 9e1e720

Please sign in to comment.