mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-01 08:56:32 +00:00
tests: kata-deploy: Show more logs in the setup()
This will also help us to better understand possible failures with the CI. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
@@ -85,6 +85,14 @@ setup() {
|
|||||||
# Give some time for the pod to finish what's doing and have the
|
# Give some time for the pod to finish what's doing and have the
|
||||||
# runtimeclasses properly created
|
# runtimeclasses properly created
|
||||||
sleep 30s
|
sleep 30s
|
||||||
|
|
||||||
|
echo "::group::kata-deploy logs"
|
||||||
|
kubectl -n kube-system logs --tail=100 -l name=kata-deploy
|
||||||
|
echo "::endgroup::"
|
||||||
|
|
||||||
|
echo "::group::Runtime classes"
|
||||||
|
kubectl get runtimeclass
|
||||||
|
echo "::endgroup::"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "Test runtimeclasses are being properly created and container runtime not broken" {
|
@test "Test runtimeclasses are being properly created and container runtime not broken" {
|
||||||
@@ -113,8 +121,6 @@ setup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
teardown() {
|
teardown() {
|
||||||
kubectl get runtimeclasses -o name | grep -v "kata-mshv-vm-isolation"
|
|
||||||
|
|
||||||
if [ "${KUBERNETES}" = "k0s" ]; then
|
if [ "${KUBERNETES}" = "k0s" ]; then
|
||||||
deploy_spec="-k \"${repo_root_dir}/tools/packaging/kata-deploy/kata-deploy/overlays/k0s\""
|
deploy_spec="-k \"${repo_root_dir}/tools/packaging/kata-deploy/kata-deploy/overlays/k0s\""
|
||||||
cleanup_spec="-k \"${repo_root_dir}/tools/packaging/kata-deploy/kata-cleanup/overlays/k0s\""
|
cleanup_spec="-k \"${repo_root_dir}/tools/packaging/kata-deploy/kata-cleanup/overlays/k0s\""
|
||||||
|
Reference in New Issue
Block a user