From 1d7e485e37d2a899c003ed1240c00525aa61bead Mon Sep 17 00:00:00 2001
From: Lluis Gifre <lluis.gifre@cttc.es>
Date: Wed, 9 Mar 2022 18:41:18 +0100
Subject: [PATCH] Extended deploy script to configure dashboards only when
 WebUI component is included in the deploy.

---
 deploy_in_kubernetes.sh | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/deploy_in_kubernetes.sh b/deploy_in_kubernetes.sh
index 0da87dbe5..a1b4551dd 100755
--- a/deploy_in_kubernetes.sh
+++ b/deploy_in_kubernetes.sh
@@ -131,9 +131,12 @@ for COMPONENT in $COMPONENTS; do
     printf "\n"
 done
 
-echo "Configuring DataStores and Dashboards..."
-./configure_dashboards.sh
-printf "\n\n"
+
+if [[ "$COMPONENTS" == *"webui"* ]]; then
+    echo "Configuring WebUI DataStores and Dashboards..."
+    ./configure_dashboards.sh
+    printf "\n\n"
+fi
 
 echo "Reporting Deployment..."
 kubectl --namespace $K8S_NAMESPACE get all
-- 
GitLab