fix(helm): guard tmpfs blocks when empty, cap volume names at 63 chars
This commit is contained in:
@@ -51,17 +51,21 @@ spec:
|
|||||||
{{- toYaml .Values.readinessProbe | nindent 12 }}
|
{{- toYaml .Values.readinessProbe | nindent 12 }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
|
{{- if .Values.tmpfsMounts }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
{{- range .Values.tmpfsMounts }}
|
{{- range .Values.tmpfsMounts }}
|
||||||
- name: {{ .mountPath | trimPrefix "/" | replace "/" "-" }}
|
- name: {{ .mountPath | trimPrefix "/" | replace "/" "-" | trunc 63 | trimSuffix "-" }}
|
||||||
mountPath: {{ .mountPath }}
|
mountPath: {{ .mountPath }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.tmpfsMounts }}
|
||||||
volumes:
|
volumes:
|
||||||
{{- range .Values.tmpfsMounts }}
|
{{- range .Values.tmpfsMounts }}
|
||||||
- name: {{ .mountPath | trimPrefix "/" | replace "/" "-" }}
|
- name: {{ .mountPath | trimPrefix "/" | replace "/" "-" | trunc 63 | trimSuffix "-" }}
|
||||||
emptyDir:
|
emptyDir:
|
||||||
medium: Memory
|
medium: Memory
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user