From 985739c29c01c98adc10f04404606e2584a68ffe Mon Sep 17 00:00:00 2001
From: Bryan Brancotte <bryan.brancotte@pasteur.fr>
Date: Fri, 17 Jun 2022 15:40:22 +0200
Subject: [PATCH] use namespace dependant chart settings

---
 .gitlab-ci.yml                |  1 +
 chart/values.ippidb-dev.yaml  | 12 ++++++++++++
 chart/values.ippidb-prod.yaml |  1 +
 3 files changed, 14 insertions(+)
 create mode 100644 chart/values.ippidb-dev.yaml
 create mode 100644 chart/values.ippidb-prod.yaml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fa511b6c..b351c443 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -161,6 +161,7 @@ build-ippisite:
       --set djangoSecrets.GALAXY_APIKEY=$(echo "$GALAXY_APIKEY_master" | base64)
       --set djangoSecrets.GALAXY_BASE_URL=$(echo "$GALAXY_BASE_URL_master" | base64)
       --set djangoSecrets.GALAXY_COMPOUNDPROPERTIES_WORKFLOWID_master=$(echo "$GALAXY_COMPOUNDPROPERTIES_WORKFLOWID_master" | base64)
+      --values ./chart/values.${NAMESPACE}.yaml
       ${CI_COMMIT_REF_SLUG} ./chart/
   cache:
     key: charts-all-branch
diff --git a/chart/values.ippidb-dev.yaml b/chart/values.ippidb-dev.yaml
new file mode 100644
index 00000000..ffadca2c
--- /dev/null
+++ b/chart/values.ippidb-dev.yaml
@@ -0,0 +1,12 @@
+# this file overwrites default settings from values.yaml to fit into the dev namespaces
+django:
+  resources:
+    limits:
+      memory: 1Gi
+      cpu: 1000m
+
+celery:
+  logLevel: debug
+  resources:
+    limits:
+      memory: 3Gi
\ No newline at end of file
diff --git a/chart/values.ippidb-prod.yaml b/chart/values.ippidb-prod.yaml
new file mode 100644
index 00000000..51d19210
--- /dev/null
+++ b/chart/values.ippidb-prod.yaml
@@ -0,0 +1 @@
+# this file is empty. All prod settings are in values.yaml
\ No newline at end of file
-- 
GitLab