fix: use %v instead of %s+print for port in static template

This commit is contained in:
ZhenYi 2026-04-15 10:40:02 +08:00
parent 0ebbc6e29e
commit 9776c923c0

View File

@ -37,7 +37,7 @@ spec:
- name: STATIC_ROOT
value: /data
- name: STATIC_BIND
value: {{ printf "0.0.0.0:%s" (print $svc.service.port) }}
value: {{ printf "0.0.0.0:%v" $svc.service.port }}
- name: STATIC_CORS
value: {{ $svc.cors | default "true" | quote }}
{{- if $svc.logLevel }}