From de7d79b7e697af8b223e07251504005597bbc5be Mon Sep 17 00:00:00 2001 From: James Munnelly Date: Mon, 29 Oct 2018 14:27:16 +0000 Subject: [PATCH] Schedule certificate renewal at the end of Certificate Sync function Signed-off-by: James Munnelly --- pkg/controller/certificates/sync.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/controller/certificates/sync.go b/pkg/controller/certificates/sync.go index aa110a143..58d49a9e0 100644 --- a/pkg/controller/certificates/sync.go +++ b/pkg/controller/certificates/sync.go @@ -191,6 +191,10 @@ func (c *Controller) Sync(ctx context.Context, crt *v1alpha1.Certificate) (reque // end checking if the TLS certificate is valid/needs a re-issue or renew + // If the Certificate is valid and up to date, we schedule a renewal in + // the future. + c.scheduleRenewal(crt) + return false, nil }