From adb68e787396f6deac9bc9034dd2d9d2c3a12092 Mon Sep 17 00:00:00 2001 From: Matej Vasek Date: Tue, 16 Jan 2024 17:55:21 +0100 Subject: [PATCH] fix: increase timeouts Signed-off-by: Matej Vasek --- pkg/knative/client.go | 2 +- pkg/knative/remover.go | 2 +- pkg/pipelines/tekton/client.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/knative/client.go b/pkg/knative/client.go index 55c5fe3755..38668c1f88 100644 --- a/pkg/knative/client.go +++ b/pkg/knative/client.go @@ -13,7 +13,7 @@ import ( ) const ( - DefaultWaitingTimeout = 120 * time.Second + DefaultWaitingTimeout = 300 * time.Second DefaultErrorWindowTimeout = 2 * time.Second ) diff --git a/pkg/knative/remover.go b/pkg/knative/remover.go index 1a3cac4921..d7a49aa28f 100644 --- a/pkg/knative/remover.go +++ b/pkg/knative/remover.go @@ -8,7 +8,7 @@ import ( "knative.dev/func/pkg/k8s" ) -const RemoveTimeout = 120 * time.Second +const RemoveTimeout = 300 * time.Second func NewRemover(namespaceOverride string, verbose bool) *Remover { return &Remover{ diff --git a/pkg/pipelines/tekton/client.go b/pkg/pipelines/tekton/client.go index 6fb10f4c62..1eca81f1ff 100644 --- a/pkg/pipelines/tekton/client.go +++ b/pkg/pipelines/tekton/client.go @@ -10,7 +10,7 @@ import ( ) const ( - DefaultWaitingTimeout = 120 * time.Second + DefaultWaitingTimeout = 300 * time.Second ) func NewTektonClientAndResolvedNamespace(defaultNamespace string) (*v1beta1.TektonV1beta1Client, string, error) {