Skip to content

Commit e872d1f

Browse files
authored
Merge pull request #122 from chaen/run_demo_scrit_prefix
run_demo: disable strict-validate-path-type for nginx ingress
2 parents da68870 + 755c3e8 commit e872d1f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

run_demo.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,12 @@ printf "%b Creating an ingress...\n" ${UNICORN_EMOJI}
504504
# TODO: This should move to the chart itself
505505
if [ ${offline_mode} -eq 0 ]; then
506506
curl -L https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml > "${tmp_dir}/kind-ingress-deploy.yaml"
507-
mv "${tmp_dir}/kind-ingress-deploy.yaml" "${demo_dir}/kind-ingress-deploy.yaml"
507+
# Disable the strict validation of the path
508+
# https://github.com/kubernetes/ingress-nginx/issues/11176
509+
# https://github.com/kubernetes/ingress-nginx/issues/10200
510+
sed -E 's/^data: null/data:\n strict-validate-path-type: "false"/g' "${tmp_dir}/kind-ingress-deploy.yaml" > "${demo_dir}/kind-ingress-deploy.yaml"
508511
fi
512+
509513
"${demo_dir}/kubectl" apply -f "${demo_dir}/kind-ingress-deploy.yaml"
510514
printf "%b Waiting for ingress controller to be created...\n" ${UNICORN_EMOJI}
511515
"${demo_dir}/kubectl" wait --namespace ingress-nginx \

0 commit comments

Comments
 (0)