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

Commit 2cec8b4

Browse files
committed
Correct used env var vor useSSL config value
1 parent 398e96f commit 2cec8b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

operator/controllers/scan_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -757,9 +757,9 @@ func (r *ScanReconciler) SetupWithManager(mgr ctrl.Manager) error {
757757
if os.Getenv("S3_PORT") != "" {
758758
port = os.Getenv("S3_PORT")
759759
}
760-
useSSL := true
761760
// Only deactivate useSSL when explicitly set to false
762-
if os.Getenv("S3_SECRET_KEY") == "false" {
761+
useSSL := true
762+
if os.Getenv("S3_USE_SSL") == "false" {
763763
useSSL = false
764764
}
765765

0 commit comments

Comments
 (0)