From ef8d4892f773b289367caa9c7cd2d4118c45e9e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Natalie=20Klestrup=20R=C3=B6ijezon?= Date: Tue, 17 Dec 2024 16:22:51 +0100 Subject: [PATCH] Run test utility containers with tini This should help speed up test teardown, since they handle SIGTERM instead of having to wait for the container shutdown to timeout. --- tests/templates/kuttl/logging/06-install-hdfs-test-runner.yaml | 2 ++ tests/templates/kuttl/smoke/40-webhdfs.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/templates/kuttl/logging/06-install-hdfs-test-runner.yaml b/tests/templates/kuttl/logging/06-install-hdfs-test-runner.yaml index 27b88afc..eb25b6d5 100644 --- a/tests/templates/kuttl/logging/06-install-hdfs-test-runner.yaml +++ b/tests/templates/kuttl/logging/06-install-hdfs-test-runner.yaml @@ -15,8 +15,10 @@ spec: labels: app: hdfs-test-runner spec: + shareProcessNamespace: true containers: - name: hdfs-test-runner image: docker.stackable.tech/stackable/testing-tools:0.2.0-stackable0.0.0-dev + args: [sleep, infinity] stdin: true tty: true diff --git a/tests/templates/kuttl/smoke/40-webhdfs.yaml b/tests/templates/kuttl/smoke/40-webhdfs.yaml index 2975ba72..e929d756 100644 --- a/tests/templates/kuttl/smoke/40-webhdfs.yaml +++ b/tests/templates/kuttl/smoke/40-webhdfs.yaml @@ -15,9 +15,11 @@ spec: labels: app: webhdfs spec: + shareProcessNamespace: true containers: - name: webhdfs image: docker.stackable.tech/stackable/testing-tools:0.2.0-stackable0.0.0-dev + args: [sleep, infinity] stdin: true tty: true resources: