From 90c782f9284a7067a458a54e215c1d507bd88b3c Mon Sep 17 00:00:00 2001 From: Dan Mihai Date: Fri, 5 Jan 2024 16:38:36 +0000 Subject: [PATCH] tests: list the current k8s pods Log the list of the current pods between tests because these pods might be related to cluster nodes occasionally running out of memory. Fixes: #8769 Signed-off-by: Dan Mihai --- tests/integration/kubernetes/run_kubernetes_tests.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/integration/kubernetes/run_kubernetes_tests.sh b/tests/integration/kubernetes/run_kubernetes_tests.sh index 40500c237d..1acaae4a6a 100644 --- a/tests/integration/kubernetes/run_kubernetes_tests.sh +++ b/tests/integration/kubernetes/run_kubernetes_tests.sh @@ -138,12 +138,15 @@ test_successful_actions() { info "Test actions that must be successful" for K8S_TEST_ENTRY in ${K8S_TEST_UNION[@]} do + info "$(kubectl get pods --all-namespaces 2>&1)" bats "${K8S_TEST_ENTRY}" done } run_policy_specific_tests() { + info "$(kubectl get pods --all-namespaces 2>&1)" bats k8s-exec-rejected.bats + info "$(kubectl get pods --all-namespaces 2>&1)" bats k8s-policy-set-keys.bats }