From 0cfc46f55a850c49741deeeece1dfe2196b7a007 Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Fri, 16 Aug 2024 13:54:29 +0200 Subject: [PATCH] test(k3s): wait for nodes ready --- .forgejo/actions/setup-k3s/action.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.forgejo/actions/setup-k3s/action.yml b/.forgejo/actions/setup-k3s/action.yml index 727735e..76e2439 100644 --- a/.forgejo/actions/setup-k3s/action.yml +++ b/.forgejo/actions/setup-k3s/action.yml @@ -15,6 +15,9 @@ runs: run: | curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=${INPUT_VERSION} K3S_KUBECONFIG_MODE=640 sh -s - server echo "KUBECONFIG=/etc/rancher/k3s/k3s.yaml" >> $GITHUB_ENV + - shell: bash + name: wait for nodes + run: kubectl wait --for=condition=Ready nodes --all --timeout=600s - shell: bash name: check k3s run: kubectl cluster-info