Skip to content

Commit c117d67

Browse files
TimWebbnmorenor
authored andcommitted
Support adding extra volume mounts via the values.yml file in Helm
1 parent cf59192 commit c117d67

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

charts/intel/templates/deployment.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ spec:
107107
key: apiKey
108108
{{- end }}
109109
{{- end }}
110+
{{- with .Values.extraEnvVars }}
111+
{{- toYaml . | nindent 12 }}
112+
{{- end }}
110113
volumeMounts:
111114
- name: properties-volume
112115
mountPath: /opt/codetogether/runtime/cthq.properties
@@ -124,6 +127,9 @@ spec:
124127
- name: tmp
125128
mountPath: /var/tmp
126129
{{- end }}
130+
{{- with .Values.extraVolumeMounts }}
131+
{{- toYaml . | nindent 12 }}
132+
{{- end }}
127133
ports:
128134
- name: http
129135
containerPort: 1080
@@ -179,6 +185,9 @@ spec:
179185
emptyDir:
180186
medium: Memory
181187
{{- end }}
188+
{{- with .Values.extraVolumes }}
189+
{{- toYaml . | nindent 8 }}
190+
{{- end }}
182191
{{- with .Values.nodeSelector }}
183192
nodeSelector:
184193
{{- toYaml . | nindent 8 }}

charts/intel/values.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,4 +180,32 @@ tolerations: []
180180

181181
affinity: {}
182182

183+
# Additional environment variables to set on the container
184+
# Example:
185+
# extraEnvVars:
186+
# - name: MY_VAR
187+
# value: "my-value"
188+
# - name: MY_SECRET_VAR
189+
# valueFrom:
190+
# secretKeyRef:
191+
# name: my-secret
192+
# key: my-key
193+
extraEnvVars: []
194+
195+
# Additional volumes to add to the pod
196+
# Example:
197+
# extraVolumes:
198+
# - name: my-config
199+
# configMap:
200+
# name: my-configmap
201+
extraVolumes: []
202+
203+
# Additional volume mounts for the main container
204+
# Example:
205+
# extraVolumeMounts:
206+
# - name: my-config
207+
# mountPath: /etc/myapp/config.yaml
208+
# subPath: config.yaml
209+
extraVolumeMounts: []
210+
183211
replicaCount: 1

0 commit comments

Comments
 (0)