From ee4f949ff12cc88323d0b00dcc2b9b914e2923d1 Mon Sep 17 00:00:00 2001
From: Bryan Brancotte <bryan.brancotte@pasteur.fr>
Date: Fri, 14 Jun 2024 09:30:31 +0200
Subject: [PATCH] more tests

---
 .gitlab-ci.yml                      | 13 ++++++++++++-
 test-chart/values-blank.yaml        |  0
 test-chart/values-with-storage.yaml |  3 +++
 3 files changed, 15 insertions(+), 1 deletion(-)
 create mode 100644 test-chart/values-blank.yaml
 create mode 100644 test-chart/values-with-storage.yaml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d52869e..11f5f67 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,7 +5,18 @@ generate:
   script:
     - mkdir -p out-templates
     - helm dependency update ./test-chart/
-    - helm template toto ./test-chart/ > out-templates/template.yaml
+    - >
+      helm template
+      --values ./test-chart/values.yaml
+      --values ./test-chart/values-${VALUES_SUFFIX}.yaml
+      toto ./test-chart/
+        > out-templates/template.yaml
+  parallel:
+    matrix:
+      - VALUES_SUFFIX: [
+          "with-storage",
+          "blank"
+        ]
   artifacts:
     paths:
     - out-templates
diff --git a/test-chart/values-blank.yaml b/test-chart/values-blank.yaml
new file mode 100644
index 0000000..e69de29
diff --git a/test-chart/values-with-storage.yaml b/test-chart/values-with-storage.yaml
new file mode 100644
index 0000000..e645880
--- /dev/null
+++ b/test-chart/values-with-storage.yaml
@@ -0,0 +1,3 @@
+shiny-k8s-toolkit-helm:
+  storage:
+    enabled: true
-- 
GitLab