Skip to content

Commit

Permalink
feat: run containerdebug in the background
Browse files Browse the repository at this point in the history
  • Loading branch information
razvan committed Dec 10, 2024
1 parent 16aedcd commit 2e7ab8f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.

- The lifetime of auto generated TLS certificates is now configurable with the role and roleGroup
config property `requestedSecretLifetime`. This helps reducing frequent Pod restarts ([#722]).
- Run a `containerdebug` process in the background of each Airflow container to collect debugging information ([#730]).

### Fixed

Expand All @@ -19,6 +20,7 @@ All notable changes to this project will be documented in this file.
[#717]: https://github.com/stackabletech/nifi-operator/pull/717
[#718]: https://github.com/stackabletech/nifi-operator/pull/718
[#722]: https://github.com/stackabletech/nifi-operator/pull/722
[#730]: https://github.com/stackabletech/nifi-operator/pull/730

## [24.11.0] - 2024-11-18

Expand Down
1 change: 1 addition & 0 deletions rust/operator-binary/src/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,7 @@ async fn build_node_rolegroup_statefulset(
{COMMON_BASH_TRAP_FUNCTIONS}
{remove_vector_shutdown_file_command}
prepare_signal_handlers
CONTAINERDEBUG_LOG_DIRECTORY={STACKABLE_LOG_DIR}/containerdebug containerdebug --output={STACKABLE_LOG_DIR}/containerdebug-state.json --loop &
bin/nifi.sh run &
wait_for_termination $!
{create_vector_shutdown_file_command}
Expand Down
7 changes: 7 additions & 0 deletions tests/templates/kuttl/smoke/30-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,10 @@ status:
expectedPods: 2
currentHealthy: 2
disruptionsAllowed: 1
---
# This test checks if the containerdebug-state.json file is present and valid
apiVersion: kuttl.dev/v1beta1
kind: TestAssert
timeout: 600
commands:
- script: kubectl exec -n $NAMESPACE --container nifi test-nifi-node-default-0 -- cat /stackable/log/containerdebug-state.json | jq --exit-status

0 comments on commit 2e7ab8f

Please sign in to comment.