Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit 1783449

Browse files
committed
Add Option to disable useSSL 😢
1 parent 863dd21 commit 1783449

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

operator/controllers/scan_controller.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,10 @@ func (r *ScanReconciler) SetupWithManager(mgr ctrl.Manager) error {
754754
accessKeyID := os.Getenv("S3_ACCESS_KEY")
755755
secretAccessKey := os.Getenv("S3_SECRET_KEY")
756756
useSSL := true
757+
// Only deactivate useSSL when explicitly set to false
758+
if os.Getenv("S3_SECRET_KEY") == "false" {
759+
useSSL = false
760+
}
757761

758762
// Initialize minio client object.
759763
minioClient, err := minio.New(endpoint, accessKeyID, secretAccessKey, useSSL)

0 commit comments

Comments
 (0)