Skip to content

Commit 01d113f

Browse files
feat: Support Vector 0.58.0 (#889)
* feat: Support Vector 0.58.0 * test(logging): Update Vector aggregator Helm values
1 parent 7f06bf3 commit 01d113f

7 files changed

Lines changed: 48 additions & 19 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ All notable changes to this project will be documented in this file.
2020
assembles all relevant Kubernetes resources before anything is applied ([#841]).
2121
- The RBAC ServiceAccount and RoleBinding are now built with the operator-rs `v2::rbac`
2222
functions and carry the full set of recommended labels ([#846]).
23-
- Bump stackable-operator to 0.118.0 ([#855], [#865], [#876]).
23+
- Bump stackable-operator to 0.121.0 ([#855], [#865], [#876], [#880], [#888]).
2424
- The reconciler now applies resources and derives the cluster status in discrete
2525
apply and update_status steps ([#856]).
2626
- All product containers now run with `securityContext.runAsNonRoot` set to `true` to improve security ([#860]).
@@ -36,8 +36,7 @@ All notable changes to this project will be documented in this file.
3636
operator upgrade, delete each broker, coordinator and router StatefulSet so that the operator
3737
immediately recreates it with the new labels ([#865]).
3838
- Make operations infallible where dependent on static inputs ([#869], [#874]).
39-
- test: Bump vector-aggregator to 0.58.0 ([#885]).
40-
- Bump stackable-operator to 0.121.0 ([#880], [#888]).
39+
- Support Vector 0.58.0 ([#885], [#889]).
4140
- Replace the unmaintained `serde_yaml` with `yaml_serde` ([#888]).
4241
- All pods now set `securityContext.seccompProfile.type` to `RuntimeDefault` ([#888]).
4342

@@ -67,6 +66,7 @@ All notable changes to this project will be documented in this file.
6766
[#880]: https://github.com/stackabletech/druid-operator/pull/880
6867
[#885]: https://github.com/stackabletech/druid-operator/pull/885
6968
[#888]: https://github.com/stackabletech/druid-operator/pull/888
69+
[#889]: https://github.com/stackabletech/druid-operator/pull/889
7070

7171
## [26.7.0] - 2026-07-21
7272

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
#!/usr/bin/env sh
22

3-
DATA_DIR=/stackable/log/_vector-state \
4-
LOG_DIR=/stackable/log \
5-
NAMESPACE=default \
6-
CLUSTER_NAME=druid \
7-
ROLE_NAME=broker \
8-
ROLE_GROUP_NAME=default \
9-
VECTOR_AGGREGATOR_ADDRESS=vector-aggregator \
10-
VECTOR_FILE_LOG_LEVEL=info \
3+
set -eu
4+
5+
export DATA_DIR=/stackable/log/_vector-state
6+
export LOG_DIR=/stackable/log
7+
export NAMESPACE=default
8+
export CLUSTER_NAME=druid
9+
export ROLE_NAME=broker
10+
export ROLE_GROUP_NAME=default
11+
export VECTOR_AGGREGATOR_ADDRESS=http://vector-aggregator:6000
12+
export VECTOR_FILE_LOG_LEVEL=info
13+
14+
# Required because vector.yaml contains ${...} placeholders
15+
export VECTOR_DANGEROUSLY_ALLOW_ENV_VAR_INTERPOLATION=true
16+
17+
vector validate --no-environment vector.yaml
18+
1119
vector test vector.yaml vector-test.yaml

‎rust/operator-binary/src/controller/build/properties/product_logging/vector-test.yaml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ tests:
1717
timestamp: 2025-10-02T09:27:28.582Z
1818
outputs:
1919
- extract_from: extended_logs
20+
expected_event_count: 1
2021
conditions:
2122
- type: vrl
2223
source: |
@@ -47,6 +48,7 @@ tests:
4748
timestamp: 2025-10-02T09:27:28.582Z
4849
outputs:
4950
- extract_from: extended_logs
51+
expected_event_count: 1
5052
conditions:
5153
- type: vrl
5254
source: |
@@ -82,6 +84,7 @@ tests:
8284
timestamp: 2025-10-02T09:27:29.473487331Z
8385
outputs:
8486
- extract_from: extended_logs
87+
expected_event_count: 1
8588
conditions:
8689
- type: vrl
8790
source: |
@@ -119,6 +122,7 @@ tests:
119122
version: 0.49.0
120123
outputs:
121124
- extract_from: extended_logs
125+
expected_event_count: 1
122126
conditions:
123127
- type: vrl
124128
source: |
@@ -147,6 +151,7 @@ tests:
147151
level: INFO
148152
outputs:
149153
- extract_from: filtered_logs_vector
154+
expected_event_count: 1
150155
conditions:
151156
- type: vrl
152157
source: |

‎rust/operator-binary/src/controller/build/properties/product_logging/vector.yaml‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,9 @@ transforms:
176176
# Extends the processed files with the fields "container" and "file"
177177
extended_logs_files:
178178
inputs:
179-
- processed_files_*
179+
- processed_files_stdout
180+
- processed_files_stderr
181+
- processed_files_log4j2
180182
type: remap
181183
source: |
182184
del(.source_type)
@@ -214,7 +216,8 @@ transforms:
214216
# Add the fields "namespace", "cluster", "role" and "roleGroup" to all logs
215217
extended_logs:
216218
inputs:
217-
- extended_logs_*
219+
- extended_logs_files
220+
- extended_logs_vector
218221
type: remap
219222
source: |
220223
.namespace = "${NAMESPACE}"
@@ -228,4 +231,8 @@ sinks:
228231
inputs:
229232
- extended_logs
230233
type: vector
231-
address: ${VECTOR_AGGREGATOR_ADDRESS}
234+
routing:
235+
endpoints:
236+
- ${VECTOR_AGGREGATOR_ADDRESS}
237+
compression: zstd
238+
keepalive: {}

‎tests/templates/kuttl/logging/01-install-druid-vector-aggregator.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ kind: ConfigMap
1414
metadata:
1515
name: druid-vector-aggregator-discovery
1616
data:
17-
ADDRESS: druid-vector-aggregator:6123
17+
ADDRESS: http://druid-vector-aggregator:6123

‎tests/templates/kuttl/logging/01_druid-vector-aggregator-values.yaml.j2‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@ customConfig:
220220
aggregator:
221221
inputs: [vector]
222222
type: vector
223-
address: {{ lookup('env', 'VECTOR_AGGREGATOR') }}
223+
routing:
224+
endpoints:
225+
- {{ lookup('env', 'VECTOR_AGGREGATOR') }}
224226
buffer:
225227
# Avoid back pressure from VECTOR_AGGREGATOR. The test should
226228
# not fail if the aggregator is not available.

‎tests/templates/kuttl/smoke/53-assert.yaml.j2‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ transforms:
178178
# Extends the processed files with the fields "container" and "file"
179179
extended_logs_files:
180180
inputs:
181-
- processed_files_*
181+
- processed_files_stdout
182+
- processed_files_stderr
183+
- processed_files_log4j2
182184
type: remap
183185
source: |
184186
del(.source_type)
@@ -216,7 +218,8 @@ transforms:
216218
# Add the fields "namespace", "cluster", "role" and "roleGroup" to all logs
217219
extended_logs:
218220
inputs:
219-
- extended_logs_*
221+
- extended_logs_files
222+
- extended_logs_vector
220223
type: remap
221224
source: |
222225
.namespace = "${NAMESPACE}"
@@ -230,7 +233,11 @@ sinks:
230233
inputs:
231234
- extended_logs
232235
type: vector
233-
address: ${VECTOR_AGGREGATOR_ADDRESS}
236+
routing:
237+
endpoints:
238+
- ${VECTOR_AGGREGATOR_ADDRESS}
239+
compression: zstd
240+
keepalive: {}
234241
{% endset %}
235242
---
236243
# Snapshot the full `.data` of each operator-managed ConfigMap.

0 commit comments

Comments
 (0)