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
  • Loading branch information
vinny-sabatini committed Aug 1, 2023
1 parent 7949fd4 commit f302ded
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 f302ded

Please sign in to comment.