Skip to content

Commit d143681

Browse files
Give ctags a writable temp dir (#132)
* Give ctags a writable temp dir * TMPDIR * make sure dir exists by mounting a volume Co-authored-by: Crystal Augustus <[email protected]>
1 parent 93a2e1f commit d143681

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

charts/sourcegraph/templates/symbols/symbols.Deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ spec:
6666
fieldPath: metadata.name
6767
- name: CACHE_DIR
6868
value: /mnt/cache/$(POD_NAME)
69+
- name: TMPDIR
70+
value: /mnt/tmp
6971
image: {{ include "sourcegraph.image" (list . "symbols" ) }}
7072
imagePullPolicy: {{ .Values.sourcegraph.image.pullPolicy }}
7173
{{- with .Values.symbols.args }}
@@ -95,6 +97,8 @@ spec:
9597
volumeMounts:
9698
- mountPath: /mnt/cache
9799
name: cache-ssd
100+
- mountPath: /mnt/tmp
101+
name: tmp
98102
{{- if .Values.symbols.extraVolumeMounts }}
99103
{{- toYaml .Values.symbols.extraVolumeMounts | nindent 8 }}
100104
{{- end }}
@@ -121,6 +125,8 @@ spec:
121125
volumes:
122126
- emptyDir: {}
123127
name: cache-ssd
128+
- emptyDir: {}
129+
name: tmp
124130
{{- if .Values.symbols.extraVolumes }}
125131
{{- toYaml .Values.symbols.extraVolumes | nindent 6 }}
126132
{{- end }}

0 commit comments

Comments
 (0)