From c962c05ecfa949e3bfcb9f266cd9847fbfcef30f Mon Sep 17 00:00:00 2001 From: Ralf Grubenmann Date: Mon, 19 Oct 2026 16:41:14 +0200 Subject: [PATCH] fix: fix custom volume mounts --- templates/models/knative-serving.yaml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/templates/models/knative-serving.yaml b/templates/models/knative-serving.yaml index a7b8763..4eda51c 100644 --- a/templates/models/knative-serving.yaml +++ b/templates/models/knative-serving.yaml @@ -80,9 +80,7 @@ spec: subPath: {{ $.Values.environment | default "." }}/model_cache {{- end }} {{- if $model.volumeMounts }} - {{- range $model.volumeMounts }} - {{- toYaml . | nindent 10 }} - {{- end }} + {{- toYaml $model.volumeMounts | nindent 10 }} {{- end }} ports: - containerPort: 3000 @@ -112,9 +110,7 @@ spec: claimName: {{ if $persistence.enabled }}{{ $fullname }}-cache{{ else }}{{ $cacheDir.claimName }}{{ end }} {{- end }} {{- if $model.volumes }} - {{- range $model.volumes }} - {{- toYaml . | nindent 8 }} - {{- end }} + {{- toYaml $model.volumes | nindent 8 }} {{- end }} {{- end }} traffic: @@ -243,9 +239,7 @@ spec: subPath: {{ $.Values.environment | default "." }}/model_cache {{- end }} {{- if $model.volumeMounts }} - {{- range $model.volumeMounts }} - {{- toYaml . | nindent 10 }} - {{- end }} + {{- toYaml $model.volumeMounts | nindent 10 }} {{- end }} {{- if $model.tolerations }} tolerations: @@ -269,9 +263,7 @@ spec: claimName: {{ if $persistence.enabled }}{{ $fullname }}-cache{{ else }}{{ $cacheDir.claimName }}{{ end }} {{- end }} {{- if $model.volumes }} - {{- range $model.volumes }} - {{- toYaml . | nindent 8 }} - {{- end }} + {{- toYaml $model.volumes | nindent 8 }} {{- end }} {{- end }} timeoutSeconds: 600