[bitnami/milvus] fix: 🐛 Add emptyDir to init job /tmp (#17578)

Depending on the system, a cat HERE-DOCUMENT command may create
a temporary file in /tmp. This PR ensures that /tmp is writable
so the file can be created

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>
This commit is contained in:
Javier J. Salmerón-García
2023-07-12 13:18:45 +02:00
committed by GitHub
parent ad5cba5de1
commit 8aeecfac85
2 changed files with 4 additions and 2 deletions

View File

@@ -39,4 +39,4 @@ maintainers:
name: milvus
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/milvus
version: 1.0.0
version: 1.0.1

View File

@@ -103,6 +103,8 @@ spec:
{{- end }}
{{- end }}
volumeMounts:
- name: tmp
mountPath: /tmp
{{- if .Values.initJob.extraVolumeMounts }}
{{- include "common.tplvalues.render" (dict "value" .Values.initJob.extraVolumeMounts "context" $) | nindent 12 }}
{{- end }}
@@ -110,7 +112,7 @@ spec:
resources: {{- toYaml .Values.initJob.resources | nindent 12 }}
{{- end }}
volumes:
- name: secret-files
- name: tmp
emptyDir: {}
{{- if .Values.extraVolumes }}
{{- include "common.tplvalues.render" (dict "value" .Values.initJob.extraVolumes "context" $) | nindent 6 }}