From: Krzysztof Opasiak Date: Wed, 22 Jul 2020 12:02:03 +0000 (+0200) Subject: [GLOBAL] Add sleep 3 to avoid race condition X-Git-Tag: 7.0.0~333 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=oom.git;a=commitdiff_plain;h=21731c96c5f92dedb9019ca2abbe4686998bba77 [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 --- 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