From fb2af2006af1eda41bff7aab4b7f7499085f2a72 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=B6ren=20Henning?= <soeren.henning@email.uni-kiel.de>
Date: Fri, 17 Dec 2021 12:08:49 +0100
Subject: [PATCH] Clean up

---
 .gitlab-ci.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 215fa97c0..06fe1238f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -60,6 +60,7 @@ test-helm:
     # - deploy-theodolite
   variables:
     KUBECTL: v1.21.3
+    CLUSTERNAME: "$CI_PROJECT_NAME-CI_PIPELINE_ID"
   cache:
     paths:
       - helm/charts
@@ -74,7 +75,7 @@ test-helm:
     - k3d help
     - k3d version
     #- k3d cluster create testgitlabci --agents 1 --wait -p "30000:30000@agent[0]"
-    - k3d cluster create testgitlabci --agents 1 --wait -p "30000:30000@agent:0" # k3d 5.0
+    - k3d cluster create $CLUSTERNAME --agents 1 --wait -p "30000:30000@agent:0" # k3d 5.0
     # show cluster info
     - kubectl cluster-info
     - helm version
@@ -87,7 +88,7 @@ test-helm:
     - kubectl get pods --all-namespaces -o wide
     - kubectl get services --all-namespaces -o wide
   after_script:
-    - k3d cluster delete testgitlabci
+    - k3d cluster delete $CLUSTERNAME
 
 
 # Theodolite Benchmarks
-- 
GitLab