Skip to content

Commit

Permalink
fix(api-server): s3 cluster tls
Browse files Browse the repository at this point in the history
  • Loading branch information
yetone committed Feb 3, 2023
1 parent 12fe108 commit 2a883b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api-server/services/organization.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ func (c *S3Config) getMinioOptions() (opts *minio.Options, err error) {
Creds: c.getMinioCredential(),
Secure: c.Secure,
}
if c.Secure {
if c.Secure && (strings.Contains(c.Endpoint, ".cluster.local") || strings.Contains(c.EndpointInCluster, ".cluster.local")) {
opts.Transport, err = c.getMinioTransport()
if err != nil {
return
Expand Down

0 comments on commit 2a883b1

Please sign in to comment.