mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 19:54:35 +00:00
ci: k8s: configurable deploy kata timeout
The deploy-kata() of gha-run.sh will wait for 10 minutes for the kata deploy installation finish. This allow users of the script to overwrite that value by exporting the KATA_DEPLOY_WAIT_TIMEOUT environment variable. Fixes #7620 Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
This commit is contained in:
parent
200e542921
commit
6677a61fe4
@ -16,6 +16,7 @@ tools_dir="${repo_root_dir}/tools"
|
|||||||
DOCKER_REGISTRY=${DOCKER_REGISTRY:-quay.io}
|
DOCKER_REGISTRY=${DOCKER_REGISTRY:-quay.io}
|
||||||
DOCKER_REPO=${DOCKER_REPO:-kata-containers/kata-deploy-ci}
|
DOCKER_REPO=${DOCKER_REPO:-kata-containers/kata-deploy-ci}
|
||||||
DOCKER_TAG=${DOCKER_TAG:-kata-containers-latest}
|
DOCKER_TAG=${DOCKER_TAG:-kata-containers-latest}
|
||||||
|
KATA_DEPLOY_WAIT_TIMEOUT=${KATA_DEPLOY_WAIT_TIMEOUT:-10m}
|
||||||
|
|
||||||
function configure_devmapper() {
|
function configure_devmapper() {
|
||||||
sudo mkdir -p /var/lib/containerd/devmapper
|
sudo mkdir -p /var/lib/containerd/devmapper
|
||||||
@ -131,7 +132,7 @@ function deploy_kata() {
|
|||||||
else
|
else
|
||||||
kubectl apply -f "${tools_dir}/packaging/kata-deploy/kata-deploy/base/kata-deploy.yaml"
|
kubectl apply -f "${tools_dir}/packaging/kata-deploy/kata-deploy/base/kata-deploy.yaml"
|
||||||
fi
|
fi
|
||||||
kubectl -n kube-system wait --timeout=10m --for=condition=Ready -l name=kata-deploy pod
|
kubectl -n kube-system wait --timeout="${KATA_DEPLOY_WAIT_TIMEOUT}" --for=condition=Ready -l name=kata-deploy pod
|
||||||
|
|
||||||
# This is needed as the kata-deploy pod will be set to "Ready" when it starts running,
|
# This is needed as the kata-deploy pod will be set to "Ready" when it starts running,
|
||||||
# which may cause issues like not having the node properly labeled or the artefacts
|
# which may cause issues like not having the node properly labeled or the artefacts
|
||||||
|
Loading…
Reference in New Issue
Block a user