Skip to content

Commit

Permalink
Configuration volume for EOSC accounting (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
valtri authored Apr 18, 2023
1 parent 3265dd9 commit 6a69edf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion notebooks-accounting/templates/eosc-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -36,4 +40,8 @@ spec:
tolerations:
{{ toYaml . | indent 12 }}
{{- end }}
volumes:
- name: accounting-config
configMap:
name: accounting
{{- end }}

0 comments on commit 6a69edf

Please sign in to comment.