From 21731c96c5f92dedb9019ca2abbe4686998bba77 Mon Sep 17 00:00:00 2001 From: Krzysztof Opasiak Date: Wed, 22 Jul 2020 14:02:03 +0200 Subject: [GLOBAL] Add sleep 3 to avoid race condition We are facing some random failures in our gating due to race condition between our makefile and helm startup. To prevent that let's add a sleep 3 after helm serve. Yes we realize that it's not the proper solution but it's an easy win which is very readable compared to placing a proper solution in the makefile. Issue-ID: OOM-2511 Signed-off-by: Krzysztof Opasiak Change-Id: If6b3332ea9f51e997f2a6057fff9d481b425104a --- kubernetes/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/kubernetes/Makefile b/kubernetes/Makefile index ee9e8d980b..b25381fd81 100644 --- a/kubernetes/Makefile +++ b/kubernetes/Makefile @@ -81,6 +81,7 @@ plugins: repo: @mkdir -p $(PACKAGE_DIR) @helm serve --repo-path $(PACKAGE_DIR) & + @sleep 3 @helm repo index $(PACKAGE_DIR) @helm repo add local http://127.0.0.1:8879 -- cgit 1.2.3-korg