Skip to content

Commit

Permalink
Fix integraion Test by upgrading Knative
Browse files Browse the repository at this point in the history
Knative 1.6 doesn't install on current cluster. So updated it to current
version.
  • Loading branch information
khrm committed Jul 18, 2023
1 parent 4f2a4c0 commit e8a15a4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/e2e-tests-examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,19 @@ err() {

install_knative_serving() {
# Install Knative by referring https://knative.dev/docs/admin/install/serving/install-serving-with-yaml/#install-the-knative-serving-component
kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.6.0/serving-crds.yaml
kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.6.0/serving-core.yaml
kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.10.2/serving-crds.yaml
kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.10.2/serving-core.yaml

# Wait for pods to be running in the namespaces we are deploying to
wait_until_pods_running knative-serving || fail_test "Knative Serving did not come up"

kubectl apply -f https://github.com/knative/net-kourier/releases/download/knative-v1.6.0/kourier.yaml
kubectl apply -f https://github.com/knative/net-kourier/releases/download/knative-v1.10.0/kourier.yaml

kubectl patch configmap/config-network \
--namespace knative-serving \
--type merge \
--patch '{"data":{"ingress.class":"kourier.ingress.networking.knative.dev"}}'
--patch '{"data":{"ingress-class":"kourier.ingress.networking.knative.dev"}}'


# Wait for pods to be running in the namespaces we are deploying to
wait_until_pods_running knative-serving || fail_test "Knative Serving & Kourier did not come up"
Expand Down

0 comments on commit e8a15a4

Please sign in to comment.