re-add TODO comment and make the message more clear
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
This commit is contained in:
parent
9c9e833c5a
commit
fe4f4e4aa6
@ -173,6 +173,8 @@ func (s *SecretsManager) setValues(crt *cmapi.Certificate, secret *corev1.Secret
|
||||
if len(data.Certificate) > 0 {
|
||||
var err error
|
||||
certificate, err = utilpki.DecodeX509CertificateBytes(data.Certificate)
|
||||
// TODO: handle InvalidData here? Maybe we should still patch the secret
|
||||
// when we detect that the certificate bytes are invalid.
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user