This repository was archived by the owner on Jun 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
tests/templates/kuttl/smoke Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
55## [ Unreleased]
66
7+ ### Added
8+
9+ - Run a ` containerdebug ` process in the background of each Hello container to collect debugging information ([ #144 ] ).
10+
11+ [ #144 ] : https://github.com/stackabletech/hello-world-operator/pull/144
12+
713## [ 24.11.0] - 2024-11-18
814
915### Added
Original file line number Diff line number Diff line change @@ -631,6 +631,7 @@ fn build_server_rolegroup_statefulset(
631631 COMMON_BASH_TRAP_FUNCTIONS . to_string ( ) ,
632632 remove_vector_shutdown_file_command ( STACKABLE_LOG_DIR ) ,
633633 "prepare_signal_handlers" . to_string ( ) ,
634+ format ! ( "CONTAINERDEBUG_LOG_DIRECTORY={STACKABLE_LOG_DIR}/containerdebug containerdebug --output={STACKABLE_LOG_DIR}/containerdebug-state.json --loop &" ) ,
634635 // run process
635636 format ! ( "java -Djava.security.properties={STACKABLE_CONFIG_DIR}/{JVM_SECURITY_PROPERTIES} -jar hello-world.jar &" ) ,
636637 // graceful shutdown part
Original file line number Diff line number Diff line change @@ -32,3 +32,10 @@ status:
3232 expectedPods : 1
3333 currentHealthy : 1
3434 disruptionsAllowed : 1
35+ ---
36+ # This test checks if the containerdebug-state.json file is present and valid
37+ apiVersion : kuttl.dev/v1beta1
38+ kind : TestAssert
39+ timeout : 60
40+ commands :
41+ - script : kubectl exec -n $NAMESPACE hello-world-server-default-0 -- cat /stackable/log/containerdebug-state.json | jq --exit-status
You can’t perform that action at this time.
0 commit comments