From 060e8fc1a9d3842bbffffe0b624fa1e012dab64b Mon Sep 17 00:00:00 2001 From: Nicola Ferraro Date: Thu, 19 Dec 2019 11:43:37 +0100 Subject: [PATCH] Fix #1162: Simple Test --- .github/workflows/pr-knative.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/pr-knative.yml b/.github/workflows/pr-knative.yml index eeb68ddf63..48f1ad17b1 100644 --- a/.github/workflows/pr-knative.yml +++ b/.github/workflows/pr-knative.yml @@ -140,6 +140,18 @@ jobs: kubectl apply -f istio-local-gateway.yaml while [ "$(kubectl get pod -n istio-system -o 'jsonpath={range .items[*]}{.status.conditions[?(@.type=="Ready")].status}{"\n"}' | grep -v True | wc -l)" != "0" ]; do echo "Waiting for all pods to be ready in istio-system"; sleep 1; done + - name: Install Knative + run: | + kubectl apply --selector knative.dev/crd-install=true \ + --filename https://github.com/knative/serving/releases/download/v0.11.0/serving.yaml \ + --filename https://github.com/knative/eventing/releases/download/v0.11.0/release.yaml \ + --filename https://github.com/knative/serving/releases/download/v0.11.0/monitoring.yaml + + kubectl apply --filename https://github.com/knative/serving/releases/download/v0.11.0/serving.yaml \ + --filename https://github.com/knative/eventing/releases/download/v0.11.0/release.yaml + + while [ "$(kubectl get pod -n knative-serving -o 'jsonpath={range .items[*]}{.status.conditions[?(@.type=="Ready")].status}{"\n"}' | grep -v True | wc -l)" != "0" ]; do echo "Waiting for all pods to be ready in knative-serving"; sleep 1; done + while [ "$(kubectl get pod -n knative-eventing -o 'jsonpath={range .items[*]}{.status.conditions[?(@.type=="Ready")].status}{"\n"}' | grep -v True | wc -l)" != "0" ]; do echo "Waiting for all pods to be ready in knative-eventing"; sleep 1; done - name: Run IT run: |