Skip to content

Commit

Permalink
Merge pull request #122 from chaen/run_demo_scrit_prefix
Browse files Browse the repository at this point in the history
run_demo: disable strict-validate-path-type for nginx ingress
  • Loading branch information
chrisburr authored Oct 15, 2024
2 parents da68870 + 755c3e8 commit e872d1f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion run_demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,12 @@ printf "%b Creating an ingress...\n" ${UNICORN_EMOJI}
# TODO: This should move to the chart itself
if [ ${offline_mode} -eq 0 ]; then
curl -L https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml > "${tmp_dir}/kind-ingress-deploy.yaml"
mv "${tmp_dir}/kind-ingress-deploy.yaml" "${demo_dir}/kind-ingress-deploy.yaml"
# Disable the strict validation of the path
# https://github.com/kubernetes/ingress-nginx/issues/11176
# https://github.com/kubernetes/ingress-nginx/issues/10200
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"
fi

"${demo_dir}/kubectl" apply -f "${demo_dir}/kind-ingress-deploy.yaml"
printf "%b Waiting for ingress controller to be created...\n" ${UNICORN_EMOJI}
"${demo_dir}/kubectl" wait --namespace ingress-nginx \
Expand Down

0 comments on commit e872d1f

Please sign in to comment.