Skip to content

Commit ae5f72f

Browse files
feat: Support Vector 0.58.0 (#878)
* feat: Support Vector 0.58.0 * chore: Fix YAML linter warning * fix: Fail test-vector.sh on validation errors
1 parent bc0c4c1 commit ae5f72f

6 files changed

Lines changed: 38 additions & 16 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
roles leave unset ([#867]).
5353
- Bump stackable-operator to 0.121.0 ([#868], [#879]).
5454
- Docs: remove Spark submit/monitor classes and refer to demo usage instead ([#870]).
55-
- test: Bump vector-aggregator to 0.58.0 ([#876]).
55+
- Support Vector 0.58.0 ([#876], [#878]).
5656
- Replace the unmaintained `serde_yaml` with `yaml_serde` ([#879]).
5757
- All pods now set `securityContext.seccompProfile.type` to `RuntimeDefault` ([#879]).
5858

@@ -92,6 +92,7 @@
9292
[#870]: https://github.com/stackabletech/airflow-operator/pull/870
9393
[#872]: https://github.com/stackabletech/airflow-operator/pull/872
9494
[#876]: https://github.com/stackabletech/airflow-operator/pull/876
95+
[#878]: https://github.com/stackabletech/airflow-operator/pull/878
9596
[#879]: https://github.com/stackabletech/airflow-operator/pull/879
9697

9798
## [26.7.0] - 2026-07-21
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
# Pin the timezone so that it does not affect the tests
3+
timezone: Etc/UTC
Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
#!/usr/bin/env sh
22

3-
# `TZ=UTC` so the Python-JSON `asctime` (which has no timezone) parses deterministically.
4-
TZ=UTC \
5-
DATA_DIR=/stackable/log/_vector-state \
6-
LOG_DIR=/stackable/log \
7-
NAMESPACE=default \
8-
CLUSTER_NAME=airflow \
9-
ROLE_NAME=webserver \
10-
ROLE_GROUP_NAME=default \
11-
VECTOR_AGGREGATOR_ADDRESS=vector-aggregator \
12-
VECTOR_FILE_LOG_LEVEL=info \
13-
vector test vector.yaml vector-test.yaml
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=airflow
9+
export ROLE_NAME=webserver
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+
19+
vector test test-config.yaml 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: |
@@ -77,6 +79,7 @@ tests:
7779
timestamp: 2025-10-02T09:27:29.473487331Z
7880
outputs:
7981
- extract_from: extended_logs
82+
expected_event_count: 1
8083
conditions:
8184
- type: vrl
8285
source: |
@@ -114,6 +117,7 @@ tests:
114117
version: 0.56.0
115118
outputs:
116119
- extract_from: extended_logs
120+
expected_event_count: 1
117121
conditions:
118122
- type: vrl
119123
source: |
@@ -142,6 +146,7 @@ tests:
142146
level: INFO
143147
outputs:
144148
- extract_from: filtered_logs_vector
149+
expected_event_count: 1
145150
conditions:
146151
- type: vrl
147152
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
@@ -111,7 +111,9 @@ transforms:
111111
# Extends the processed files with the fields "container" and "file"
112112
extended_logs_files:
113113
inputs:
114-
- processed_files_*
114+
- processed_files_stdout
115+
- processed_files_stderr
116+
- processed_files_py
115117
type: remap
116118
source: |
117119
del(.source_type)
@@ -149,7 +151,8 @@ transforms:
149151
# Add the fields "namespace", "cluster", "role" and "roleGroup" to all logs
150152
extended_logs:
151153
inputs:
152-
- extended_logs_*
154+
- extended_logs_files
155+
- extended_logs_vector
153156
type: remap
154157
source: |
155158
.namespace = "${NAMESPACE}"
@@ -163,4 +166,8 @@ sinks:
163166
inputs:
164167
- extended_logs
165168
type: vector
166-
address: ${VECTOR_AGGREGATOR_ADDRESS}
169+
routing:
170+
endpoints:
171+
- ${VECTOR_AGGREGATOR_ADDRESS}
172+
compression: zstd
173+
keepalive: {}

‎tests/templates/kuttl/logging/30-install-airflow-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: airflow-vector-aggregator-discovery
1616
data:
17-
ADDRESS: airflow-vector-aggregator:6123
17+
ADDRESS: http://airflow-vector-aggregator:6123

0 commit comments

Comments
 (0)