Skip to content

Commit 4610c80

Browse files
committed
Add volumes to helm chart
1 parent 391d2bf commit 4610c80

File tree

4 files changed

+27
-1
lines changed

4 files changed

+27
-1
lines changed

.github/workflows/mdbook.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ on:
1515
- ".github/workflows/mdbook.yml"
1616
- "index.html"
1717

18+
workflow_run:
19+
workflows: [ 'Release Charts' ]
20+
types: [ completed ]
21+
22+
1823
# Allows you to run this workflow manually from the Actions tab
1924
workflow_dispatch:
2025

charts/shoebox/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ apiVersion: v2
22
name: shoebox-helm
33
description: A Helm chart for Kubernetes to deploy Shoebox
44
type: application
5-
version: 0.0.2
5+
version: 0.0.3

charts/shoebox/templates/deployment.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,15 @@ spec:
3737
value: {{ $val | quote }}
3838
{{- end }}
3939
{{- end }}
40+
{{- if .Values.volumeMounts }}
41+
volumeMounts:
42+
{{- toYaml .Values.volumeMounts | default "" | nindent 12 }}
43+
{{- end }}
4044
volumes:
4145
- name: config-volume
4246
configMap:
4347
name: {{ .Chart.Name }}-config
48+
{{- if .Values.volumes }}
49+
{{- toYaml .Values.volumes | default "" | nindent 8 }}
50+
{{- end }}
51+

charts/shoebox/values.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,19 @@ ingress:
2626
hosts:
2727
- test.shoebox.default # Placeholder domain
2828

29+
volumeMounts:
30+
- name: "test"
31+
mountPath: "/mnt/testMount"
32+
subPath: "/test"
33+
34+
35+
volumes:
36+
- name: "test"
37+
PersistentVolumeClaim:
38+
claimName: "test"
39+
40+
41+
2942
config:
3043
database:
3144
database_ip: "127.0.0.1"

0 commit comments

Comments
 (0)