mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
feat(template): Add ability to configure volumes
This commit is contained in:
@@ -2,7 +2,7 @@ apiVersion: v2
|
|||||||
name: template
|
name: template
|
||||||
description: A Helm library chart containing common templates, keeping application templates short
|
description: A Helm library chart containing common templates, keeping application templates short
|
||||||
type: library
|
type: library
|
||||||
version: 0.4.1
|
version: 0.5.0
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: Jim Martens
|
- name: Jim Martens
|
||||||
url: https://2martens.de
|
url: https://2martens.de
|
||||||
@@ -10,8 +10,8 @@ sources:
|
|||||||
- https://github.com/2martens/cloud-configuration
|
- https://github.com/2martens/cloud-configuration
|
||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: fixed
|
- kind: added
|
||||||
description: Provide volume for tmp directory
|
description: Add ability to configure volumes/volume mounts
|
||||||
artifacthub.io/signKey: |
|
artifacthub.io/signKey: |
|
||||||
fingerprint: F0F153B65BAD467201D7544E47393ABD1F96B7C8
|
fingerprint: F0F153B65BAD467201D7544E47393ABD1F96B7C8
|
||||||
url: https://mafiasi.de/pks/key/47393ABD1F96B7C8.asc
|
url: https://mafiasi.de/pks/key/47393ABD1F96B7C8.asc
|
||||||
|
|||||||
@@ -166,6 +166,12 @@ tolerations: []
|
|||||||
# Configure affinity, contents will be added verbatim to key affinity in deployment pod template
|
# Configure affinity, contents will be added verbatim to key affinity in deployment pod template
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
|
# volumes: configure volumes
|
||||||
|
volumes: []
|
||||||
|
|
||||||
|
# volumeMounts: will be mounted in container
|
||||||
|
volumeMounts: []
|
||||||
|
|
||||||
# podSpec: will be added at the bottom of the pod template in the deployment
|
# podSpec: will be added at the bottom of the pod template in the deployment
|
||||||
podSpec: {}
|
podSpec: {}
|
||||||
# containerSpec: will be added at the bottom of the container specification in the pod template
|
# containerSpec: will be added at the bottom of the container specification in the pod template
|
||||||
|
|||||||
@@ -58,11 +58,12 @@ spec:
|
|||||||
- name: {{ .name }}
|
- name: {{ .name }}
|
||||||
value: {{ tpl (quote .value) $ }}
|
value: {{ tpl (quote .value) $ }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.application.isSpring }}
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
{{- if .Values.application.isSpring }}
|
||||||
- mountPath: /tmp
|
- mountPath: /tmp
|
||||||
name: tmp
|
name: tmp
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- toYaml .Values.volumeMounts | nindent 12 }}
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: {{ .Values.application.port }}
|
containerPort: {{ .Values.application.port }}
|
||||||
@@ -116,12 +117,13 @@ spec:
|
|||||||
tolerations:
|
tolerations:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.application.isSpring }}
|
|
||||||
volumes:
|
volumes:
|
||||||
|
{{- if .Values.application.isSpring }}
|
||||||
- name: tmp
|
- name: tmp
|
||||||
emptyDir:
|
emptyDir:
|
||||||
medium: Memory
|
medium: Memory
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- toYaml .Values.volumes | nindent 8 }}
|
||||||
{{- with .Values.podSpec }}
|
{{- with .Values.podSpec }}
|
||||||
{{- toYaml . | nindent 6 }}
|
{{- toYaml . | nindent 6 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user