From 8139af3bf9cdc2b95358c9984fcd98888ff1b76e Mon Sep 17 00:00:00 2001 From: Bryan Brancotte <bryan.brancotte@pasteur.fr> Date: Mon, 6 Nov 2023 18:45:12 +0100 Subject: [PATCH] set debug to false in production, closes #277 --- chart/templates/deployment-django.yaml | 2 +- chart/values.ippidb-dev.yaml | 1 + chart/values.yaml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/chart/templates/deployment-django.yaml b/chart/templates/deployment-django.yaml index 557db418..5a4d54ff 100644 --- a/chart/templates/deployment-django.yaml +++ b/chart/templates/deployment-django.yaml @@ -45,7 +45,7 @@ spec: # command: ["/docker-entrypoint.sh", "gunicorn", "--bind", ":8000", "ippisite.wsgi:application", "--threads", "4"] env: - name: DJANGO_DEBUG - value: "true" + value: {{ .Values.django.debug | quote }} - name: POSTGRES_HOST value: {{ printf "%s-postgresql" .Release.Name }}{{- if .Values.postgresqlBackend.bitnami.enabled }}bitnami{{end}} - name: POSTGRES_DB diff --git a/chart/values.ippidb-dev.yaml b/chart/values.ippidb-dev.yaml index 9d8310e3..f6932094 100644 --- a/chart/values.ippidb-dev.yaml +++ b/chart/values.ippidb-dev.yaml @@ -1,5 +1,6 @@ # this file overwrites default settings from values.yaml to fit into the dev namespaces django: + debug: true resources: requests: ephemeral-storage: "0" diff --git a/chart/values.yaml b/chart/values.yaml index 6c633a0b..e198e1d7 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -51,6 +51,7 @@ ingress: django: name: ippidb + debug: false persistence: size: 130Gi enabled: true -- GitLab