From 511650ca8272f6157cad93aaf7283997d3e13d1f Mon Sep 17 00:00:00 2001 From: Max Ehrlich Date: Thu, 13 Sep 2018 17:01:17 -0400 Subject: [PATCH] ACME issuers currently will not support getting the CA certificate Signed-off-by: Max Ehrlich --- pkg/issuer/acme/issue.go | 6 +++--- pkg/issuer/acme/renew.go | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/issuer/acme/issue.go b/pkg/issuer/acme/issue.go index 1e5780e0e..97fc86a63 100644 --- a/pkg/issuer/acme/issue.go +++ b/pkg/issuer/acme/issue.go @@ -205,10 +205,10 @@ func (a *Acme) obtainCertificate(ctx context.Context, crt *v1alpha1.Certificate) return keyPem, certBuffer.Bytes(), nil } -func (a *Acme) Issue(ctx context.Context, crt *v1alpha1.Certificate) ([]byte, []byte, error) { +func (a *Acme) Issue(ctx context.Context, crt *v1alpha1.Certificate) ([]byte, []byte, []byte, error) { key, cert, err := a.obtainCertificate(ctx, crt) if err != nil { - return nil, nil, err + return nil, nil, nil, err } - return key, cert, err + return key, cert, nil, err } diff --git a/pkg/issuer/acme/renew.go b/pkg/issuer/acme/renew.go index fac17c884..9850a19f6 100644 --- a/pkg/issuer/acme/renew.go +++ b/pkg/issuer/acme/renew.go @@ -22,10 +22,10 @@ import ( "github.com/jetstack/cert-manager/pkg/apis/certmanager/v1alpha1" ) -func (a *Acme) Renew(ctx context.Context, crt *v1alpha1.Certificate) ([]byte, []byte, error) { +func (a *Acme) Renew(ctx context.Context, crt *v1alpha1.Certificate) ([]byte, []byte, []byte, error) { key, cert, err := a.obtainCertificate(ctx, crt) if err != nil { - return nil, nil, err + return nil, nil, nil, err } - return key, cert, err + return key, cert, nil, err }