Skip to content

Commit

Permalink
Don't install Gateway CRDs when installing Contour
Browse files Browse the repository at this point in the history
  • Loading branch information
dprotaso committed May 17, 2024
1 parent 0fe8bad commit baa803c
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions test/e2e-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ export GATEWAY_NAMESPACE_OVERRIDE=${GATEWAY_NAMESPACE_OVERRIDE:-istio-system}
export GATEWAY_CLASS=${GATEWAY_CLASS:-istio}
export UNSUPPORTED_E2E_TESTS=${UNSUPPORTED_E2E_TESTS:-$ISTIO_UNSUPPORTED_E2E_TESTS}
export KIND=${KIND:-0}
export CONTOUR_FILES=(
"00-common.yaml"
"01-roles.yaml"
"02-rolebindings.yaml"
"03-gateway-provisioner.yaml"
)

function parse_flags() {
case "$1" in
Expand Down Expand Up @@ -105,7 +111,10 @@ function teardown_networking() {
kubectl delete -f "${REPO_ROOT_DIR}/third_party/gateway-api/gateway-api.yaml"

if [[ "$INGRESS" == "contour" ]]; then
kubectl delete -f "https://raw.githubusercontent.com/projectcontour/contour/${CONTOUR_VERSION}/examples/render/contour-gateway-provisioner.yaml"
for file in ${CONTOUR_FILES[@]}; do
kubectl delete -f \
"https://raw.githubusercontent.com/projectcontour/contour/${CONTOUR_VERSION}/examples/gateway-provisioner/${file}"
done
else
istioctl uninstall -y --purge
kubectl delete namespace istio-system
Expand All @@ -114,7 +123,10 @@ function teardown_networking() {

function setup_contour() {
# Version is selected is in $REPO_ROOT/hack/test-env.sh
kubectl apply -f "https://raw.githubusercontent.com/projectcontour/contour/${CONTOUR_VERSION}/examples/render/contour-gateway-provisioner.yaml" && \
for file in ${CONTOUR_FILES[@]}; do
kubectl apply -f \
"https://raw.githubusercontent.com/projectcontour/contour/${CONTOUR_VERSION}/examples/gateway-provisioner/${file}"
done
kubectl wait deploy --for=condition=Available --timeout=60s -n projectcontour contour-gateway-provisioner && \
kubectl apply -f "${REPO_ROOT_DIR}/third_party/contour"

Expand Down

0 comments on commit baa803c

Please sign in to comment.