From 4dd679739393481fd0bce3cce33e0c399a22b1a2 Mon Sep 17 00:00:00 2001 From: Liyi Huang Date: Thu, 27 Jun 2024 16:20:04 -0400 Subject: [PATCH] waiting for tmp1 until it's available (#43) * waiting for tmp1 until it's available * just sleep 5 to wait --- scripts/provisioner.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/provisioner.sh b/scripts/provisioner.sh index 85eed0a..a3c9442 100755 --- a/scripts/provisioner.sh +++ b/scripts/provisioner.sh @@ -111,7 +111,9 @@ fi helm repo update # Substitute environment variables into the Cilium Helm values file. -envsubst < "${CILIUM_HELM_VALUES_FILE}" > tmp1 +envsubst < "${CILIUM_HELM_VALUES_FILE}" > tmp1 +# Just try to wait a bit to avoid this https://github.com/isovalent/terraform-k8s-cilium/issues/42 issue. If the file is still not available in 5 seconds, we will let helm install to throw out the error. +sleep 5 if [[ "${CILIUM_HELM_VALUES_OVERRIDE_FILE}" != "" ]]; then