Browse Source

fix 4sec timeout on Validate() method to 15sec

Pedro Carmezim 4 years ago
parent
commit
be893b1d51

+ 1 - 1
pkg/provider/akeyless/akeyless.go

@@ -112,7 +112,7 @@ func (a *Akeyless) Close(ctx context.Context) error {
 }
 
 func (a *Akeyless) Validate() error {
-	timeout := 4 * time.Second
+	timeout := 15 * time.Second
 	url := a.url
 
 	return utils.NetworkValidate(url, timeout)

+ 1 - 1
pkg/provider/alibaba/kms.go

@@ -198,7 +198,7 @@ func (kms *KeyManagementService) Close(ctx context.Context) error {
 }
 
 func (kms *KeyManagementService) Validate() error {
-	timeout := 4 * time.Second
+	timeout := 15 * time.Second
 	url := kms.url
 
 	return utils.NetworkValidate(url, timeout)

+ 1 - 1
pkg/provider/gitlab/gitlab.go

@@ -223,7 +223,7 @@ func (g *Gitlab) Close(ctx context.Context) error {
 }
 
 func (g *Gitlab) Validate() error {
-	timeout := 4 * time.Second
+	timeout := 15 * time.Second
 	url := g.url
 
 	return utils.NetworkValidate(url, timeout)

+ 1 - 1
pkg/provider/webhook/webhook.go

@@ -395,7 +395,7 @@ func (w *WebHook) Close(ctx context.Context) error {
 }
 
 func (w *WebHook) Validate() error {
-	timeout := 4 * time.Second
+	timeout := 15 * time.Second
 	url := w.url
 
 	return utils.NetworkValidate(url, timeout)