Add comment

This commit is contained in:
Louis Taylor 2018-03-23 12:21:37 +00:00
parent 1669611908
commit 545bd9104a
No known key found for this signature in database
GPG Key ID: 8E81A6DAE13E7098

View File

@ -239,6 +239,9 @@ func (c *Controller) updateSecret(crt *v1alpha1.Certificate, namespace string, c
}
secret.Annotations[v1alpha1.AltNamesAnnotationKey] = strings.Join(dnsnames, ",")
// Note: since this sets annotations based on certificate resource, incorrect
// annotations will be set if resource and actual certificate somehow get out
// of sync
cn, err := pki.CommonNameForCertificate(crt)
if err != nil {
return nil, err