mirror of https://github.com/knative/client.git
Make e2e test run over other networks (#1339)
This commit is contained in:
parent
81cb343b4e
commit
217df5ccf5
|
|
@ -16,6 +16,12 @@
|
|||
|
||||
source $(dirname $0)/../vendor/knative.dev/hack/e2e-tests.sh
|
||||
|
||||
export INGRESS_CLASS=${INGRESS_CLASS:-istio.ingress.networking.knative.dev}
|
||||
|
||||
function is_ingress_class() {
|
||||
[[ "${INGRESS_CLASS}" == *"${1}"* ]]
|
||||
}
|
||||
|
||||
function cluster_setup() {
|
||||
header "Building client"
|
||||
${REPO_ROOT_DIR}/hack/build.sh -f || return 1
|
||||
|
|
@ -59,7 +65,9 @@ function install_istio() {
|
|||
}
|
||||
|
||||
function knative_setup() {
|
||||
install_istio
|
||||
if is_ingress_class istio; then
|
||||
install_istio
|
||||
fi
|
||||
|
||||
local serving_version=${KNATIVE_SERVING_VERSION:-latest}
|
||||
header "Installing Knative Serving (${serving_version})"
|
||||
|
|
@ -80,6 +88,11 @@ function knative_setup() {
|
|||
wait_until_pods_running knative-serving || return 1
|
||||
fi
|
||||
|
||||
if ! is_ingress_class istio; then
|
||||
kubectl patch configmap/config-network -n knative-serving \
|
||||
--type merge -p '{"data": {"ingress.class":"'${INGRESS_CLASS}'"}}'
|
||||
fi
|
||||
|
||||
local eventing_version=${KNATIVE_EVENTING_VERSION:-latest}
|
||||
header "Installing Knative Eventing (${eventing_version})"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue