ci: k8s: Do not gather node info before running the tests

It's been proven to not be useful, and ends up making things more
confusing due to the amount of logs printed.

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio 2023-07-26 21:45:39 +02:00
parent 5261e3a60c
commit 6ad5d7112e

View File

@ -93,9 +93,6 @@ function deploy_kata() {
fi fi
kubectl -n kube-system wait --timeout=10m --for=condition=Ready -l name=kata-deploy pod kubectl -n kube-system wait --timeout=10m --for=condition=Ready -l name=kata-deploy pod
echo "Gather information about the nodes and pods after having kata-deploy ready"
get_nodes_and_pods_info
# 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
# properly deployed when the tests actually start running. # properly deployed when the tests actually start running.
@ -122,9 +119,6 @@ function run_tests() {
kubectl apply -f ${kubernetes_dir}/runtimeclass_workloads/tests-namespace.yaml kubectl apply -f ${kubernetes_dir}/runtimeclass_workloads/tests-namespace.yaml
kubectl config set-context --current --namespace=kata-containers-k8s-tests kubectl config set-context --current --namespace=kata-containers-k8s-tests
echo "Gather information about the nodes and pods just before starting the tests"
get_nodes_and_pods_info
pushd "${kubernetes_dir}" pushd "${kubernetes_dir}"
bash setup.sh bash setup.sh
bash run_kubernetes_tests.sh bash run_kubernetes_tests.sh