Change key name constant to better match its function

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>
This commit is contained in:
Max Ehrlich 2018-09-13 16:37:14 -04:00
parent 2524335f3a
commit e347572541
No known key found for this signature in database
GPG Key ID: 439AC62D3C8A495A

View File

@ -62,7 +62,7 @@ const (
)
const (
nginxCAKey = "ca.crt"
TLSCAKey = "ca.crt"
)
func (c *Controller) Sync(ctx context.Context, crt *v1alpha1.Certificate) (err error) {
@ -238,7 +238,7 @@ func (c *Controller) updateSecret(crt *v1alpha1.Certificate, namespace string, c
secret.Data[api.TLSPrivateKeyKey] = key
if crt.Spec.IsCA {
secret.Data[nginxCAKey] = cert
secret.Data[TLSCAKey] = cert
}
if secret.Annotations == nil {