Skip to content

Commit

Permalink
Update pkg/utils/miniojob/types.go
Browse files Browse the repository at this point in the history
Co-authored-by: Ramon de Klein <mail@ramondeklein.nl>
  • Loading branch information
jiuker and ramondeklein committed Sep 18, 2024
1 parent 9aca698 commit d33fdfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/miniojob/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (jobCommand *MinIOIntervalJobCommand) createJob(_ context.Context, _ client
}
}

if jobCR.Spec.Insecure != nil && *jobCR.Spec.Insecure && insecure == false {
if jobCR.Spec.Insecure != nil && *jobCR.Spec.Insecure && !insecure {
jobCommands = append(jobCommands, "--insecure")
insecure = true
}
Expand Down

0 comments on commit d33fdfd

Please sign in to comment.