Set static (Cluster)Issuers timeout to 90 seconds

Signed-off-by: Joost Buskermolen <joost@buskervezel.nl>
This commit is contained in:
Joost Buskermolen 2022-06-07 08:53:15 +02:00 committed by Ashley Davis
parent 1efd063848
commit 40bda26e8b
No known key found for this signature in database
GPG Key ID: DD14CC017E32BEB1
2 changed files with 4 additions and 4 deletions

View File

@ -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()

View File

@ -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()