From eeea207d27de36737bdd747791f512dd884815ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enol=20Fern=C3=A1ndez?= Date: Fri, 23 Aug 2024 15:14:29 +0100 Subject: [PATCH] Add debug to the env (#18) --- notebooks-accounting/templates/accounting-cronjob.yaml | 5 +++++ notebooks-accounting/templates/eosc-cronjob.yaml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/notebooks-accounting/templates/accounting-cronjob.yaml b/notebooks-accounting/templates/accounting-cronjob.yaml index 20843bc..0cf0f8b 100644 --- a/notebooks-accounting/templates/accounting-cronjob.yaml +++ b/notebooks-accounting/templates/accounting-cronjob.yaml @@ -22,6 +22,11 @@ spec: {{- toYaml . | nindent 16 }} {{- end }} command: ["egi-notebooks-accounting-dump", "-c", "/etc/egi-notebooks-accounting/config.ini"] + {{- if .Values.debug }} + env: + - name: VERBOSE + value: "1" + {{- end}} resources: {{- toYaml .Values.resources | nindent 16 }} volumeMounts: diff --git a/notebooks-accounting/templates/eosc-cronjob.yaml b/notebooks-accounting/templates/eosc-cronjob.yaml index 6b6ea23..4c0920c 100644 --- a/notebooks-accounting/templates/eosc-cronjob.yaml +++ b/notebooks-accounting/templates/eosc-cronjob.yaml @@ -22,6 +22,11 @@ spec: {{- toYaml . | nindent 16 }} {{- end }} command: ["egi-notebooks-eosc-accounting", "-c", "/etc/egi-notebooks-accounting/config.ini"] + {{- if .Values.debug }} + env: + - name: VERBOSE + value: "1" + {{- end}} resources: {{ toYaml .Values.resources | indent 16 }} volumeMounts: