From 88684a85a3cd5eafa9d3412f5e67523943bcc332 Mon Sep 17 00:00:00 2001 From: Federico Maleh Date: Tue, 11 Nov 2025 10:02:05 -0300 Subject: [PATCH] Fix naming convention for deployment volumes --- k8s/deployment/templates/deployment.yaml.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/k8s/deployment/templates/deployment.yaml.tpl b/k8s/deployment/templates/deployment.yaml.tpl index ab9c237d..497b5141 100644 --- a/k8s/deployment/templates/deployment.yaml.tpl +++ b/k8s/deployment/templates/deployment.yaml.tpl @@ -285,7 +285,7 @@ spec: {{- range .parameters.results }} {{- if and (eq .type "file") }} {{- if gt (len .values) 0 }} - - name: {{ printf "file-%s" (filepath.Base .destination_path | strings.ReplaceAll "." "-") }} + - name: {{ printf "file-%s" (filepath.Base .destination_path | strings.ReplaceAll "." "-" | strings.ReplaceAll "_" "-") }} mountPath: {{ .destination_path }} subPath: {{ filepath.Base .destination_path }} readOnly: true @@ -298,7 +298,7 @@ spec: {{- range .parameters.results }} {{- if and (eq .type "file") }} {{- if gt (len .values) 0 }} - - name: {{ printf "file-%s" (filepath.Base .destination_path | strings.ReplaceAll "." "-") }} + - name: {{ printf "file-%s" (filepath.Base .destination_path | strings.ReplaceAll "." "-" | strings.ReplaceAll "_" "-") }} secret: secretName: s-{{ $.scope.id }}-d-{{ $.deployment.id }} items: