diff --git a/crates/stackable-operator/CHANGELOG.md b/crates/stackable-operator/CHANGELOG.md index 477e62b5b..05c7b0330 100644 --- a/crates/stackable-operator/CHANGELOG.md +++ b/crates/stackable-operator/CHANGELOG.md @@ -7,8 +7,18 @@ All notable changes to this project will be documented in this file. ### Changed - Replace serde_yaml with yaml_serde ([#1298]). +- BREAKING: The Vector container created by `v2::product_logging::framework::vector_container` now + starts Vector with the wrapper script `/stackable/bin/vector-with-env-var-interpolation` instead + of calling `vector` directly ([#1299]). + Vector 0.57.0 disabled the interpolation of environment variables in configuration files by + default, while the generated `vector.yaml` uses `${...}` placeholders for the log directory and + file names, the log levels, the role group the Pod belongs to, and the address of the Vector + aggregator. The wrapper script re-enables the interpolation by passing + `--dangerously-allow-env-var-interpolation` to Vector. The product image must contain this script, + which is the case for images with Vector 0.58.0 or later. [#1298]: https://github.com/stackabletech/operator-rs/pull/1298 +[#1299]: https://github.com/stackabletech/operator-rs/pull/1299 ## [0.120.0] - 2026-10-12 diff --git a/crates/stackable-operator/src/v2/product_logging/framework.rs b/crates/stackable-operator/src/v2/product_logging/framework.rs index b02562387..3a2d865f6 100644 --- a/crates/stackable-operator/src/v2/product_logging/framework.rs +++ b/crates/stackable-operator/src/v2/product_logging/framework.rs @@ -196,7 +196,7 @@ pub fn vector_container( .args(vec![format!( "mkdir --parents {STACKABLE_LOG_DIR}/{VECTOR_STATE_DIR}\n\ # Vector will ignore SIGTERM (as PID != 1) and must be shut down by writing a shutdown trigger file\n\ - vector & vector_pid=$!\n\ + /stackable/bin/vector-with-env-var-interpolation & vector_pid=$!\n\ if [ ! -f \"{vector_control_directory}/{SHUTDOWN_FILE}\" ]; then\n\ mkdir -p {vector_control_directory}\n\ inotifywait -qq --event create {vector_control_directory};\n\ @@ -415,7 +415,7 @@ mod tests { concat!( "mkdir --parents /stackable/log/_vector-state\n", "# Vector will ignore SIGTERM (as PID != 1) and must be shut down by writing a shutdown trigger file\n", - "vector & vector_pid=$!\n", + "/stackable/bin/vector-with-env-var-interpolation & vector_pid=$!\n", "if [ ! -f \"/stackable/log/_vector/shutdown\" ]; then\n", "mkdir -p /stackable/log/_vector\n", "inotifywait -qq --event create /stackable/log/_vector;\n",