From ef130cb1c5573779527bc6be8b6c32bfc9e28e10 Mon Sep 17 00:00:00 2001 From: Ashley Davis Date: Wed, 4 Sep 2024 12:52:04 +0100 Subject: [PATCH] handle initial issuer config for dynamic istiod cert Signed-off-by: Ashley Davis --- pkg/istiodcert/worker.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/istiodcert/worker.go b/pkg/istiodcert/worker.go index 2fc1a7f0..2081f7a7 100644 --- a/pkg/istiodcert/worker.go +++ b/pkg/istiodcert/worker.go @@ -95,6 +95,10 @@ func New(log logr.Logger, restConfig *rest.Config, opts Options, issuerChangeNot // It waits for a notification of an issuer change, and when it gets one it // triggers reconciliation of the dynamic istiod cert. func (dicp *DynamicIstiodCertProvisioner) Start(ctx context.Context) error { + if dicp.initialIssuerRef != nil { + dicp.handleNewIssuer(dicp.initialIssuerRef) + } + for { select { case <-ctx.Done():