fix(k8s-alpha): escape the image for sed as the install scripts do

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
pingqiuandClaude Opus 5.5 committed 2026-11-25 18:27:33 -08:00
1 parent 3ff0a640fd
commit 9379f5c059
1 file changed
+1 -1
@@ -4,7 +4,7 @@
# rendered: usage: render-k8s-alpha-image.sh IMAGE IN OUT
set -euo pipefail
[[ $# -eq 3 ]] || { echo "usage: $0 IMAGE IN OUT" >&2; exit 2; }
image_sed="$(printf '%s' "$1" | sed 's/[\/&]/\&/g')"
image_sed="$(printf '%s' "$1" | sed 's/[\/&]/\\&/g')"
sed -e "s/sw-block:local/${image_sed}/g" \
-e "s/imagePullPolicy: Never/imagePullPolicy: IfNotPresent/g" \
"$2" >"$3"