From d5a65d73b59378f5ce39bf76e0572da478cecbda Mon Sep 17 00:00:00 2001 From: Offending Commit Date: Wed, 3 Jun 2026 11:04:15 -0500 Subject: [PATCH] fix(helm): guard tmpfs blocks when empty, cap volume names at 63 chars --- charts/openconcho/templates/deployment.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/charts/openconcho/templates/deployment.yaml b/charts/openconcho/templates/deployment.yaml index b7cc438..900d459 100644 --- a/charts/openconcho/templates/deployment.yaml +++ b/charts/openconcho/templates/deployment.yaml @@ -51,17 +51,21 @@ spec: {{- toYaml .Values.readinessProbe | nindent 12 }} resources: {{- toYaml .Values.resources | nindent 12 }} + {{- if .Values.tmpfsMounts }} volumeMounts: {{- range .Values.tmpfsMounts }} - - name: {{ .mountPath | trimPrefix "/" | replace "/" "-" }} + - name: {{ .mountPath | trimPrefix "/" | replace "/" "-" | trunc 63 | trimSuffix "-" }} mountPath: {{ .mountPath }} {{- end }} + {{- end }} + {{- if .Values.tmpfsMounts }} volumes: {{- range .Values.tmpfsMounts }} - - name: {{ .mountPath | trimPrefix "/" | replace "/" "-" }} + - name: {{ .mountPath | trimPrefix "/" | replace "/" "-" | trunc 63 | trimSuffix "-" }} emptyDir: medium: Memory {{- end }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }}