Skip to content

Commit

Permalink
fix return for invalid private key algorithm in buildNextCR
Browse files Browse the repository at this point in the history
Signed-off-by: Vinny Sabatini <[email protected]>
  • Loading branch information
vinny-sabatini committed Aug 29, 2023
1 parent 7949fd4 commit d79e75a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ func (r *Route) buildNextCR(ctx context.Context, route *routev1.Route, revision

default:
r.eventRecorder.Event(route, corev1.EventTypeWarning, ReasonInvalidPrivateKeyAlgorithm, "invalid private key algorithm: "+privateKeyAlgorithm)
return fmt.Errorf("invalid private key algorithm, %s", privateKeyAlgorithm)
return nil, fmt.Errorf("invalid private key algorithm, %s", privateKeyAlgorithm)
}

csr, err := x509.CreateCertificateRequest(
Expand Down

0 comments on commit d79e75a

Please sign in to comment.