From 9112cb2dff1a396772e36ffdfce95c71c1998e6e Mon Sep 17 00:00:00 2001 From: ZhenYi <434836402@qq.com> Date: Wed, 15 Apr 2026 10:42:53 +0800 Subject: [PATCH] fix: use scratch variable for port binding in static template --- deploy/templates/static-deployment.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy/templates/static-deployment.yaml b/deploy/templates/static-deployment.yaml index a180d4b..6271539 100644 --- a/deploy/templates/static-deployment.yaml +++ b/deploy/templates/static-deployment.yaml @@ -2,6 +2,7 @@ {{- $fullName := include "gitdata.fullname" . -}} {{- $ns := include "gitdata.namespace" . -}} {{- $svc := .Values.static -}} +{{- $port := printf "0.0.0.0:%d" $svc.service.port | quote -}} --- apiVersion: apps/v1 @@ -37,7 +38,7 @@ spec: - name: STATIC_ROOT value: /data - name: STATIC_BIND - value: {{ printf "0.0.0.0:%v" $svc.service.port }} + value: {{ $port }} - name: STATIC_CORS value: {{ $svc.cors | default "true" | quote }} {{- if $svc.logLevel }}