File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ install_binaries() {
3333 local stern_version=1.32.0
3434 local kn_version=1.18.0
3535 local jq_version=1.7.1
36+ local yq_version=4.50.1
3637
3738 echo " ${blue} Installing binaries${reset} "
3839 echo " OS: ${OS} "
@@ -48,6 +49,7 @@ install_binaries() {
4849 install_stern
4950 install_kn
5051 install_jq
52+ install_yq
5153
5254 echo " ${green} DONE${reset} "
5355
@@ -148,6 +150,11 @@ install_jq() {
148150 " ${bin} " /jq --version
149151}
150152
153+ install_yq () {
154+ echo ' === yq'
155+ CGO_ENABLED=0 GOBIN=" ${bin} " go install " github.com/mikefarah/yq/v4@v${yq_version} "
156+ }
157+
151158if [ " $0 " = " ${BASH_SOURCE[0]} " ]; then
152159 set -o errexit
153160 set -o nounset
Original file line number Diff line number Diff line change @@ -236,7 +236,11 @@ networking() {
236236 echo " Version: ${contour_version} "
237237
238238 echo " Installing a configured Contour."
239- $KUBECTL apply -f " https://github.com/knative/net-contour/releases/download/knative-${contour_version} /contour.yaml"
239+ curl -sSL " https://github.com/knative/net-contour/releases/download/knative-${contour_version} /contour.yaml" \
240+ | $YQ ' (select(.kind == "Deployment" and .metadata.name == "contour").spec.template.spec.containers[0].args)
241+ += ["--envoy-service-http-address=::", "--envoy-service-https-address=::"]' \
242+ | $KUBECTL apply -f -
243+
240244 sleep 5
241245 $KUBECTL wait pod --for=condition=Ready -l ' !job-name' -n contour-external --timeout=10m
242246
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ find_executables() {
2727 STERN=$( find_executable " stern" || true)
2828 KN=$( find_executable " kn" || true)
2929 JQ=$( find_executable " jq" || true)
30+ YQ=$( find_executable " yq" || true)
3031}
3132
3233populate_environment () {
You can’t perform that action at this time.
0 commit comments