From 5fdafc514a3897a93f03b316f4b0e27b0df54746 Mon Sep 17 00:00:00 2001 From: Siegfried Weber Date: Fri, 16 Oct 2026 18:02:20 +0200 Subject: [PATCH] test: Adapt the integration tests to Vector 0.58.0 --- CHANGELOG.md | 3 ++- ...zookeeper-vector-aggregator-values.yaml.j2 | 4 ++- tests/templates/kuttl/smoke/14-assert.yaml.j2 | 26 ++++++++++++++----- 3 files changed, 25 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b86ac197..fbf9c68a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,7 +39,7 @@ All notable changes to this project will be documented in this file. producing a duplicated entry whose precedence depended on Kubernetes' duplicate-name handling ([#1077]). - Make operations infallible where dependent on static inputs ([#1084]). -- Support Vector 0.58.0 ([#1093], [#1098], [#1099]). +- Support Vector 0.58.0 ([#1093], [#1098], [#1099], [#1100]). - All pods now set `securityContext.seccompProfile.type` to `RuntimeDefault` ([#1097]). - Replace the unmaintained `serde_yaml` with `yaml_serde` ([#1097]). @@ -66,6 +66,7 @@ All notable changes to this project will be documented in this file. [#1097]: https://github.com/stackabletech/zookeeper-operator/pull/1097 [#1098]: https://github.com/stackabletech/zookeeper-operator/pull/1098 [#1099]: https://github.com/stackabletech/zookeeper-operator/pull/1099 +[#1100]: https://github.com/stackabletech/zookeeper-operator/pull/1100 ## [26.7.0] - 2026-07-21 diff --git a/tests/templates/kuttl/logging/zookeeper-vector-aggregator-values.yaml.j2 b/tests/templates/kuttl/logging/zookeeper-vector-aggregator-values.yaml.j2 index bc43497b..866b7e23 100644 --- a/tests/templates/kuttl/logging/zookeeper-vector-aggregator-values.yaml.j2 +++ b/tests/templates/kuttl/logging/zookeeper-vector-aggregator-values.yaml.j2 @@ -70,7 +70,9 @@ customConfig: aggregator: inputs: [vector] type: vector - address: {{ lookup('env', 'VECTOR_AGGREGATOR') }} + routing: + endpoints: + - {{ lookup('env', 'VECTOR_AGGREGATOR') }} buffer: # Avoid back pressure from VECTOR_AGGREGATOR. The test should # not fail if the aggregator is not available. diff --git a/tests/templates/kuttl/smoke/14-assert.yaml.j2 b/tests/templates/kuttl/smoke/14-assert.yaml.j2 index 9a57b5c8..a5193cfd 100644 --- a/tests/templates/kuttl/smoke/14-assert.yaml.j2 +++ b/tests/templates/kuttl/smoke/14-assert.yaml.j2 @@ -265,7 +265,9 @@ commands: # Extends the processed files with the fields "container" and "file" extended_logs_files: inputs: - - processed_files_* + - processed_files_stdout + - processed_files_stderr + - processed_files_log4j type: remap source: | del(.source_type) @@ -303,7 +305,8 @@ commands: # Add the fields "namespace", "cluster", "role" and "roleGroup" to all logs extended_logs: inputs: - - extended_logs_* + - extended_logs_files + - extended_logs_vector type: remap source: | .namespace = "${NAMESPACE}" @@ -317,7 +320,11 @@ commands: inputs: - extended_logs type: vector - address: ${VECTOR_AGGREGATOR_ADDRESS} + routing: + endpoints: + - ${VECTOR_AGGREGATOR_ADDRESS} + compression: zstd + keepalive: {} {% endif %} zoo.cfg: | admin.serverPort=8080 @@ -549,7 +556,9 @@ commands: # Extends the processed files with the fields "container" and "file" extended_logs_files: inputs: - - processed_files_* + - processed_files_stdout + - processed_files_stderr + - processed_files_log4j type: remap source: | del(.source_type) @@ -587,7 +596,8 @@ commands: # Add the fields "namespace", "cluster", "role" and "roleGroup" to all logs extended_logs: inputs: - - extended_logs_* + - extended_logs_files + - extended_logs_vector type: remap source: | .namespace = "${NAMESPACE}" @@ -601,7 +611,11 @@ commands: inputs: - extended_logs type: vector - address: ${VECTOR_AGGREGATOR_ADDRESS} + routing: + endpoints: + - ${VECTOR_AGGREGATOR_ADDRESS} + compression: zstd + keepalive: {} {% endif %} zoo.cfg: | admin.serverPort=8080