diff --git a/.github/workflows/kubernetes.yml b/.github/workflows/kubernetes.yml index 4227c19..c3cbbb7 100644 --- a/.github/workflows/kubernetes.yml +++ b/.github/workflows/kubernetes.yml @@ -42,6 +42,7 @@ jobs: KNATIVE_SERVING_VERSION: v1.9.4 KNATIVE_EVENTING_VERSION: v1.9.7 KNATIVE_KOURIER_VERSION: v1.9.2 + KUBECTL_WAIT_TIMEOUT: "180s" steps: - name: Checkout code uses: actions/checkout@v3 @@ -96,6 +97,9 @@ jobs: export KAMEL_INSTALL_REGISTRY_INSECURE=true kamel install + + # Wait for operator to start + kubectl wait pod -l app=camel-k --for condition=Ready --timeout=${{ env.KUBECTL_WAIT_TIMEOUT }} - name: YAKS tools uses: citrusframework/yaks-install-action@v1.1 with: @@ -103,6 +107,9 @@ jobs: - name: Install YAKS run: | yaks install --operator-image $YAKS_IMAGE_NAME:$YAKS_VERSION + + # Wait for operator to start + kubectl wait pod -l app=yaks --for condition=Ready --timeout=${{ env.KUBECTL_WAIT_TIMEOUT }} - name: YAKS Tests run: | # Then run integration tests diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index ddbfdeb..19d6161 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -36,6 +36,7 @@ jobs: KNATIVE_SERVING_VERSION: v1.9.4 KNATIVE_EVENTING_VERSION: v1.9.7 KNATIVE_KOURIER_VERSION: v1.9.2 + KUBECTL_WAIT_TIMEOUT: "180s" steps: - name: Checkout code uses: actions/checkout@v3 @@ -90,6 +91,9 @@ jobs: export KAMEL_INSTALL_REGISTRY_INSECURE=true kamel install --maven-repository=https://repository.apache.org/content/repositories/snapshots@id=apache-snapshots@snapshots + + # Wait for operator to start + kubectl wait pod -l app=camel-k --for condition=Ready --timeout=${{ env.KUBECTL_WAIT_TIMEOUT }} - name: YAKS tools uses: citrusframework/yaks-install-action@v1.1 with: @@ -97,6 +101,9 @@ jobs: - name: Install YAKS run: | yaks install --operator-image $YAKS_IMAGE_NAME:$YAKS_VERSION + + # Wait for operator to start + kubectl wait pod -l app=yaks --for condition=Ready --timeout=${{ env.KUBECTL_WAIT_TIMEOUT }} - name: YAKS Tests run: | # Then run integration tests @@ -126,6 +133,7 @@ jobs: KNATIVE_SERVING_VERSION: v1.9.4 KNATIVE_EVENTING_VERSION: v1.9.7 KNATIVE_KOURIER_VERSION: v1.9.2 + KUBECTL_WAIT_TIMEOUT: "180s" steps: - name: Checkout code uses: actions/checkout@v3 @@ -180,6 +188,9 @@ jobs: export KAMEL_INSTALL_REGISTRY_INSECURE=true kamel install + + # Wait for operator to start + kubectl wait pod -l app=camel-k --for condition=Ready --timeout=${{ env.KUBECTL_WAIT_TIMEOUT }} - name: YAKS tools uses: citrusframework/yaks-install-action@v1.1 with: @@ -187,6 +198,9 @@ jobs: - name: Install YAKS run: | yaks install --operator-image $YAKS_IMAGE_NAME:$YAKS_VERSION + + # Wait for operator to start + kubectl wait pod -l app=yaks --for condition=Ready --timeout=${{ env.KUBECTL_WAIT_TIMEOUT }} - name: YAKS Tests run: | # Then run integration tests