diff --git a/helm/template/Chart.yaml b/helm/template/Chart.yaml index bc05384..5914499 100644 --- a/helm/template/Chart.yaml +++ b/helm/template/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: template description: A Helm library chart containing common templates, keeping application templates short type: library -version: 0.4.0 +version: 0.4.1 maintainers: - name: Jim Martens url: https://2martens.de @@ -10,8 +10,8 @@ sources: - https://github.com/2martens/cloud-configuration annotations: artifacthub.io/changes: | - - kind: changed - description: Harden by default + - kind: fixed + description: Provide volume for tmp directory artifacthub.io/signKey: | fingerprint: F0F153B65BAD467201D7544E47393ABD1F96B7C8 url: https://mafiasi.de/pks/key/47393ABD1F96B7C8.asc diff --git a/helm/template/templates/_deployment.yaml b/helm/template/templates/_deployment.yaml index 0b0388a..df11c5b 100644 --- a/helm/template/templates/_deployment.yaml +++ b/helm/template/templates/_deployment.yaml @@ -58,6 +58,11 @@ spec: - name: {{ .name }} value: {{ tpl (quote .value) $ }} {{- end }} + {{- if .Values.application.isSpring }} + volumeMounts: + - mountPath: /tmp + name: tmp + {{- end }} ports: - name: http containerPort: {{ .Values.application.port }} @@ -111,6 +116,12 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- if .Values.application.isSpring }} + volumes: + - name: tmp + emptyDir: + medium: Memory + {{- end }} {{- with .Values.podSpec }} {{- toYaml . | nindent 6 }} {{- end }}