From cb94443274063c9e591bb3422f4f77dba9625ece Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Wei=C3=9Fe?= Date: Mon, 3 Jun 2024 11:12:13 +0200 Subject: [PATCH] Adjust action to not depend on node names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Weiße --- .github/actions/e2e_benchmark/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/e2e_benchmark/action.yml b/.github/actions/e2e_benchmark/action.yml index 04de42e80..b4b55b5b3 100644 --- a/.github/actions/e2e_benchmark/action.yml +++ b/.github/actions/e2e_benchmark/action.yml @@ -127,7 +127,7 @@ runs: KUBECONFIG: ${{ inputs.kubeconfig }} TERM: xterm-256color run: | - workers="$(kubectl get nodes -o name | grep worker)" + workers="$(kubectl get nodes -o name -l '!node-role.kubernetes.io/control-plane')" echo -e "Found workers:\n$workers" server="$(echo "$workers" | tail +1 | head -1 | cut -d '/' -f2)" echo "Server: $server"