feat(template): Add ability to configure volumes

This commit is contained in:
2024-02-04 23:07:48 +01:00
parent 5718146c0d
commit da375757ea
3 changed files with 14 additions and 6 deletions
+4 -2
View File
@@ -58,11 +58,12 @@ spec:
- name: {{ .name }}
value: {{ tpl (quote .value) $ }}
{{- end }}
{{- if .Values.application.isSpring }}
volumeMounts:
{{- if .Values.application.isSpring }}
- mountPath: /tmp
name: tmp
{{- end }}
{{- toYaml .Values.volumeMounts | nindent 12 }}
ports:
- name: http
containerPort: {{ .Values.application.port }}
@@ -116,12 +117,13 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.application.isSpring }}
volumes:
{{- if .Values.application.isSpring }}
- name: tmp
emptyDir:
medium: Memory
{{- end }}
{{- toYaml .Values.volumes | nindent 8 }}
{{- with .Values.podSpec }}
{{- toYaml . | nindent 6 }}
{{- end }}