From 6a69edf309e6a5d64377cd1a0814b9f76510d1ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Tue, 18 Apr 2023 17:08:53 +0200 Subject: [PATCH] Configuration volume for EOSC accounting (#16) --- notebooks-accounting/templates/eosc-cronjob.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/notebooks-accounting/templates/eosc-cronjob.yaml b/notebooks-accounting/templates/eosc-cronjob.yaml index af2a2a6..ac00893 100644 --- a/notebooks-accounting/templates/eosc-cronjob.yaml +++ b/notebooks-accounting/templates/eosc-cronjob.yaml @@ -14,7 +14,7 @@ spec: spec: restartPolicy: OnFailure containers: - - name: {{ .Chart.Name }} + - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} {{- with .Values.imagePullSecrets }} @@ -24,6 +24,10 @@ spec: command: ["egi-notebooks-eosc-accounting", "-c", "/etc/egi-notebooks-accounting/config.ini"] resources: {{ toYaml .Values.resources | indent 16 }} + volumeMounts: + - name: accounting-config + mountPath: /etc/egi-notebooks-accounting + readOnly: true {{- with .Values.nodeSelector }} nodeSelector: {{ toYaml . | indent 12 }} @@ -36,4 +40,8 @@ spec: tolerations: {{ toYaml . | indent 12 }} {{- end }} + volumes: + - name: accounting-config + configMap: + name: accounting {{- end }}