Skip to content

Commit 4935cd5

Browse files
committed
fix: add extra volumes to chart deployment
Fixes bad indent 12->10
1 parent 0f7226b commit 4935cd5

File tree

2 files changed

+32
-6
lines changed

2 files changed

+32
-6
lines changed

chart/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ spec:
180180
- name: shared-volume
181181
mountPath: {{ .Values.volumeMount.dashboardServicePath | quote }}
182182
{{- if .Values.dashboardService.extraVolumeMounts }}
183-
{{- include "common.tplvalues.render" (dict "value" .Values.dashboardService.extraVolumeMounts "context" $) | nindent 12 }}
183+
{{- include "common.tplvalues.render" (dict "value" .Values.dashboardService.extraVolumeMounts "context" $) | nindent 10 }}
184184
{{- end }}
185185
{{- if .Values.sidecars }}
186186
{{- include "common.tplvalues.render" ( dict "value" .Values.sidecars "context" $) | nindent 8 }}

chart/values.yaml

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ volumeMount:
3636
dashboardPath: "/share"
3737
dashboardServicePath: "/share"
3838

39+
extraVolumes:
40+
- name: bragg-volume
41+
emptyDir: {}
42+
- name: transition-volume
43+
emptyDir: {}
44+
- name: andie-volume
45+
emptyDir: {}
46+
- name: scientist-cloud-volume
47+
emptyDir: {}
48+
3949
### Section that needs to be fixed ###
4050
# TODO: fix this to make sense for this application
4151
pdb:
@@ -65,8 +75,8 @@ lifecycleHooks: {}
6575
extraEnvVars: []
6676
extraEnvVarsCM: ""
6777
extraEnvVarsSecret: ""
68-
extraVolumes: []
69-
etraVolumeMounts: []
78+
# extraVolumes: []
79+
extraVolumeMounts: []
7080
initContainers: []
7181
sidecars: []
7282

@@ -98,6 +108,16 @@ dashboard:
98108

99109
extraContainerPorts: []
100110

111+
extraVolumeMounts:
112+
- name: bragg-volume
113+
mountPath: /usr/src/dashboard/bragg_volume
114+
- name: transition-volume
115+
mountPath: /usr/src/dashboard/transition_volume
116+
- name: andie-volume
117+
mountPath: /usr/src/dashboard/andie_volume
118+
- name: scientist-cloud-volume
119+
mountPath: /usr/src/dashboard/scientist_cloud_volume
120+
101121
# TODO figure out halfway decent probes
102122

103123
livenessProbe: # the application developers should help determine sane default params
@@ -230,8 +250,16 @@ dashboardService:
230250
extraEnvVars: []
231251
extraEnvVarsCM: ""
232252
extraEnvVarsSecret: ""
233-
extraVolumeMounts: []
234253

254+
extraVolumeMounts:
255+
- name: bragg-volume
256+
mountPath: /usr/src/dashboard_service/bragg_volume
257+
- name: transition-volume
258+
mountPath: /usr/src/dashboard_service/transition_volume
259+
- name: andie-volume
260+
mountPath: /usr/src/dashboard_service/andie_volume
261+
- name: scientist-cloud-volume
262+
mountPath: /usr/src/dashboard_service/scientist_cloud_volume
235263

236264
### Kubernetes role stuff
237265

@@ -245,5 +273,3 @@ serviceAccount:
245273
#
246274
# See README on format
247275
intersectConfig: {}
248-
249-

0 commit comments

Comments
 (0)