From dd0867d885da8ca3a440a3c8ee76e110cad24288 Mon Sep 17 00:00:00 2001
From: gifrerenom <lluis.gifre@cttc.es>
Date: Wed, 20 Mar 2024 11:58:29 +0000
Subject: [PATCH] Improved GitLab CI/CD pipeline - ECOC'22:

- Added modification of log levels in manifests during deployment
---
 src/tests/ecoc22/.gitlab-ci.yml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/tests/ecoc22/.gitlab-ci.yml b/src/tests/ecoc22/.gitlab-ci.yml
index a1b262131..32949a3ce 100644
--- a/src/tests/ecoc22/.gitlab-ci.yml
+++ b/src/tests/ecoc22/.gitlab-ci.yml
@@ -54,6 +54,12 @@ end2end_test ecoc22:
     - kubectl get pods --all-namespaces
 
     # Configure TeraFlowSDN deployment
+    - yq -i '((select(.kind=="Deployment").spec.template.spec.containers.[] | select(.name=="server").env.[]) | select(.name=="LOG_LEVEL").value) |= "DEBUG"' manifests/contextservice.yaml
+    - yq -i '((select(.kind=="Deployment").spec.template.spec.containers.[] | select(.name=="server").env.[]) | select(.name=="LOG_LEVEL").value) |= "DEBUG"' manifests/deviceservice.yaml
+    - yq -i '((select(.kind=="Deployment").spec.template.spec.containers.[] | select(.name=="frontend").env.[]) | select(.name=="LOG_LEVEL").value) |= "DEBUG"' manifests/pathcompservice.yaml
+    - yq -i '((select(.kind=="Deployment").spec.template.spec.containers.[] | select(.name=="server").env.[]) | select(.name=="LOG_LEVEL").value) |= "DEBUG"' manifests/serviceservice.yaml
+    - yq -i '((select(.kind=="Deployment").spec.template.spec.containers.[] | select(.name=="server").env.[]) | select(.name=="LOG_LEVEL").value) |= "DEBUG"' manifests/sliceservice.yaml
+    - yq -i '((select(.kind=="Deployment").spec.template.spec.containers.[] | select(.name=="server").env.[]) | select(.name=="LOG_LEVEL").value) |= "DEBUG"' manifests/nbiservice.yaml
     - source src/tests/${TEST_NAME}/deploy_specs.sh
     #- export TFS_REGISTRY_IMAGES="${CI_REGISTRY_IMAGE}"
     #- export TFS_SKIP_BUILD=""
-- 
GitLab