You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2023/09/04 12:58:45 UTC
[camel-k] 02/02: fix(ci): knative install timeout
This is an automated email from the ASF dual-hosted git repository.
pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit f7f0de241666c26c9ee198f36e2495cf6484cf2b
Author: Pasquale Congiusti <pa...@gmail.com>
AuthorDate: Mon Sep 4 11:35:03 2023 +0200
fix(ci): knative install timeout
---
.github/actions/kamel-config-cluster-kind/action.yml | 4 ++--
.github/actions/kamel-install-knative/install-knative.sh | 10 ++++++----
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/.github/actions/kamel-config-cluster-kind/action.yml b/.github/actions/kamel-config-cluster-kind/action.yml
index f8ab0abff..586d21bdd 100644
--- a/.github/actions/kamel-config-cluster-kind/action.yml
+++ b/.github/actions/kamel-config-cluster-kind/action.yml
@@ -26,8 +26,8 @@ runs:
uses: container-tools/kind-action@v2.0.1
if: ${{ env.CLUSTER_KIND_CONFIGURED != 'true' }}
with:
- version: v0.14.0
- node_image: kindest/node:v1.23.6@sha256:b1fa224cc6c7ff32455e0b1fd9cbfd3d3bc87ecaa8fcb06961ed1afb3db0f9ae
+ version: v0.20.0
+ node_image: kindest/node:v1.26.6@sha256:6e2d8b28a5b601defe327b98bd1c2d1930b49e5d8c512e1895099e4504007adb
cpu: 3
- id: info
diff --git a/.github/actions/kamel-install-knative/install-knative.sh b/.github/actions/kamel-install-knative/install-knative.sh
index 5eb62bc7e..1ec4d8003 100755
--- a/.github/actions/kamel-install-knative/install-knative.sh
+++ b/.github/actions/kamel-install-knative/install-knative.sh
@@ -34,6 +34,8 @@ export SERVING_VERSION=knative-v1.11.0
export EVENTING_VERSION=knative-v1.11.0
export KOURIER_VERSION=knative-v1.11.0
+TIMEOUT="150s"
+
apply() {
local file="${1:-}"
if [ -z "${file}" ]; then
@@ -69,7 +71,7 @@ curl -L -s ${SERVING_CORE} | head -n -1 | yq e 'del(.spec.template.spec.containe
if [ -s ${YAML} ]; then
apply ${YAML}
echo "Waiting for pods to be ready in knative-serving (dependency for kourier)"
- kubectl wait --for=condition=Ready pod --all -n knative-serving --timeout=60s
+ kubectl wait --for=condition=Ready pod --all -n knative-serving --timeout=${TIMEOUT}
else
echo "Error: Failed to correctly download ${SERVING_CORE}"
exit 1
@@ -135,8 +137,8 @@ kubectl patch configmap/config-sugar \
# Wait for installation completed
echo "Waiting for all pods to be ready in kourier-system"
-kubectl wait --for=condition=Ready pod --all -n kourier-system --timeout=60s
+kubectl wait --for=condition=Ready pod --all -n kourier-system --timeout=${TIMEOUT}
echo "Waiting for all pods to be ready in knative-serving"
-kubectl wait --for=condition=Ready pod --all -n knative-serving --timeout=60s
+kubectl wait --for=condition=Ready pod --all -n knative-serving --timeout=${TIMEOUT}
echo "Waiting for all pods to be ready in knative-eventing"
-kubectl wait --for=condition=Ready pod --all -n knative-eventing --timeout=60s
+kubectl wait --for=condition=Ready pod --all -n knative-eventing --timeout=${TIMEOUT}