From 303db2be7eed706bc4855d33ed27867c720cd57d Mon Sep 17 00:00:00 2001 From: Olha Yevtushenko Date: Fri, 11 Feb 2022 16:26:31 +0200 Subject: [PATCH] starter: add retries on errors --- pkg/resources/containers/curl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/resources/containers/curl.go b/pkg/resources/containers/curl.go index 60f24d20..d8cdd157 100644 --- a/pkg/resources/containers/curl.go +++ b/pkg/resources/containers/curl.go @@ -25,7 +25,7 @@ func NewCurlContainer(hostnames []string, image string, command []string, env [] var parts []string for _, hostname := range hostnames { - parts = append(parts, fmt.Sprintf("curl -X PATCH -H 'Content-Type: application/json' http://%s:6565/v1/status -d '%s'", hostname, req)) + parts = append(parts, fmt.Sprintf("curl --retry 3 -X PATCH -H 'Content-Type: application/json' http://%s:6565/v1/status -d '%s'", hostname, req)) } return corev1.Container{ Name: "k6-curl",