Skip to content

Commit

Permalink
Turn off internal cert management via config (#755) (#757)
Browse files Browse the repository at this point in the history
Co-authored-by: Arda Güçlü <aguclu@redhat.com>
  • Loading branch information
kannon92 and ardaguclu authored Jan 17, 2025
1 parent 8d85dac commit 152f624
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,13 @@ func main() {
}

certsReady := make(chan struct{})
if err = cert.CertsManager(mgr, cfg, certsReady); err != nil {
setupLog.Error(err, "unable to setup cert rotation")
os.Exit(1)
if cfg.InternalCertManagement != nil && *cfg.InternalCertManagement.Enable {
if err = cert.CertsManager(mgr, cfg, certsReady); err != nil {
setupLog.Error(err, "Unable to set up cert rotation")
os.Exit(1)
}
} else {
close(certsReady)
}

ctx := ctrl.SetupSignalHandler()
Expand Down

0 comments on commit 152f624

Please sign in to comment.