From 40bda26e8bab15a355c45a6c491e93beaaa4f85e Mon Sep 17 00:00:00 2001 From: Joost Buskermolen Date: Tue, 7 Jun 2022 08:53:15 +0200 Subject: [PATCH] Set static (Cluster)Issuers timeout to 90 seconds Signed-off-by: Joost Buskermolen --- pkg/controller/clusterissuers/sync.go | 4 ++-- pkg/controller/issuers/sync.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/controller/clusterissuers/sync.go b/pkg/controller/clusterissuers/sync.go index 3167ac3a7..c3097eb78 100644 --- a/pkg/controller/clusterissuers/sync.go +++ b/pkg/controller/clusterissuers/sync.go @@ -41,8 +41,8 @@ const ( func (c *controller) Sync(ctx context.Context, iss *cmapi.ClusterIssuer) (err error) { log := logf.FromContext(ctx) - // allow a maximum of 10s - ctx, cancel := context.WithTimeout(ctx, time.Second*10) + // allow a maximum of 90s + ctx, cancel := context.WithTimeout(ctx, time.Second*90) defer cancel() issuerCopy := iss.DeepCopy() diff --git a/pkg/controller/issuers/sync.go b/pkg/controller/issuers/sync.go index cc9e5405f..2a8fcc780 100644 --- a/pkg/controller/issuers/sync.go +++ b/pkg/controller/issuers/sync.go @@ -41,8 +41,8 @@ const ( func (c *controller) Sync(ctx context.Context, iss *cmapi.Issuer) (err error) { log := logf.FromContext(ctx) - // allow a maximum of 10s - ctx, cancel := context.WithTimeout(ctx, time.Second*10) + // allow a maximum of 90s + ctx, cancel := context.WithTimeout(ctx, time.Second*90) defer cancel() issuerCopy := iss.DeepCopy()