Skip to content

Commit

Permalink
Error on a non-OCP semeru install w/o cert-manager (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
kabicin authored Oct 27, 2023
1 parent aa41355 commit a4a9628
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controllers/semeru_compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (r *ReconcileWebSphereLiberty) reconcileSemeruCompiler(wlva *wlv1.WebSphere
}

//create certmanager issuer and certificate if necessary
if !r.IsOpenShift() || cmPresent {
if cmPresent {
err = r.GenerateCMIssuer(wlva.Namespace, OperatorShortName, "WebSphere Liberty Operator", OperatorName)
if err != nil {
return err, "Failed to reconcile Certificate Issuer", false
Expand All @@ -96,6 +96,8 @@ func (r *ReconcileWebSphereLiberty) reconcileSemeruCompiler(wlva *wlv1.WebSphere
if err != nil {
return err, "Failed to reconcile Semeru Compiler Certificate", false
}
} else if !r.IsOpenShift() {
return fmt.Errorf("Could not detect a cert-manager installation. Ensure cert-manager is installed and running"), "", false
}

//TLS Secret
Expand Down

0 comments on commit a4a9628

Please sign in to comment.