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:
Tim Ramlot 2023-06-14 14:51:39 +02:00
parent 9c9e833c5a
commit fe4f4e4aa6
No known key found for this signature in database
GPG Key ID: 47428728E0C2878D

View File

@ -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
}