From a39580f780b77d7075aa1cc4ac0880307bb13dc5 Mon Sep 17 00:00:00 2001 From: Aidan Hilt Date: Fri, 23 Feb 2024 15:11:06 -0500 Subject: [PATCH] Fixing /tmp/config.ini collisions --- gen3/bin/kube-setup-argo-wrapper.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gen3/bin/kube-setup-argo-wrapper.sh b/gen3/bin/kube-setup-argo-wrapper.sh index 6546be6cd..18fb643a6 100644 --- a/gen3/bin/kube-setup-argo-wrapper.sh +++ b/gen3/bin/kube-setup-argo-wrapper.sh @@ -32,10 +32,10 @@ if [[ -z "$GEN3_SOURCE_ONLY" ]]; then export ARGO_NAMESPACE="argo" fi - envsubst <"${GEN3_HOME}/kube/services/argo-wrapper/config.ini" > /tmp/config.ini + envsubst <"${GEN3_HOME}/kube/services/argo-wrapper/config.ini" > /tmp/config-$(gen3 db namespace).ini g3kubectl delete configmap argo-wrapper-namespace-config - g3kubectl create configmap argo-wrapper-namespace-config --from-file /tmp/config.ini + g3kubectl create configmap argo-wrapper-namespace-config --from-file /tmp/config-$(gen3 db namespace).ini gen3_log_info "the argo-wrapper service has been deployed onto the kubernetes cluster" fi