Skip to content

Commit 115ef8c

Browse files
test: Adapt the integration tests to Vector 0.58.0 (#960)
1 parent 6946fb2 commit 115ef8c

3 files changed

Lines changed: 29 additions & 13 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 4 additions & 4 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
always defaulting to `Always` ([#944]).
2121
- Internal operator refactoring: introduce a build() step in the reconciler that
2222
assembles all relevant Kubernetes resources before anything is applied ([#909]).
23-
- Bump `stackable-operator` to 0.118.0 ([#918], [#932], [#944]).
23+
- Bump `stackable-operator` to 0.121.0 ([#918], [#932], [#944], [#949], [#957]).
2424
- The RBAC ServiceAccount and RoleBinding are now built with the operator-rs `v2::rbac`
2525
functions and carry the full set of recommended labels ([#913]).
2626
- BREAKING: The `coordinators` and `workers` roles are now required by the CRD.
@@ -43,12 +43,11 @@ All notable changes to this project will be documented in this file.
4343
- Internal operator refactoring: the validated cluster carries each role's configuration in its own
4444
typed fields instead of maps keyed by role, and the coordinator's role config is no longer
4545
converted to the worker's shape and its listener class recovered afterwards ([#945]).
46-
- Bump stackable-operator to 0.119.0 ([#949]).
4746
- test: Bump vector-aggregator to 0.58.0 ([#953]).
4847
- test: Update OPA to 1.20.2 in integration tests ([#958]).
49-
- Bump `stackable-operator` to 0.121.0 and replace the unmaintained `serde_yaml` with `yaml_serde` ([#957]).
48+
- Replace the unmaintained `serde_yaml` with `yaml_serde` ([#957]).
5049
- All pods now set `securityContext.seccompProfile.type` to `RuntimeDefault` ([#957]).
51-
- Support Vector 0.58.0 ([#953], [#959]).
50+
- Support Vector 0.58.0 ([#953], [#959], [#960]).
5251

5352
### Fixed
5453

@@ -87,6 +86,7 @@ All notable changes to this project will be documented in this file.
8786
[#957]: https://github.com/stackabletech/trino-operator/pull/957
8887
[#958]: https://github.com/stackabletech/trino-operator/pull/958
8988
[#959]: https://github.com/stackabletech/trino-operator/pull/959
89+
[#960]: https://github.com/stackabletech/trino-operator/pull/960
9090

9191
## [26.7.0] - 2026-07-21
9292

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ customConfig:
124124
aggregator:
125125
inputs: [vector]
126126
type: vector
127-
address: {{ lookup('env', 'VECTOR_AGGREGATOR') }}
127+
routing:
128+
endpoints:
129+
- {{ lookup('env', 'VECTOR_AGGREGATOR') }}
128130
buffer:
129131
# Avoid back pressure from VECTOR_AGGREGATOR. The test should
130132
# not fail if the aggregator is not available.

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

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ commands:
175175

176176
timestamp_string, err = string(event.timestamp)
177177
if err == null {
178-
parsed_timestamp, err = parse_timestamp(timestamp_string, "%Y-%m-%dT%H:%M:%S.%fZ")
178+
parsed_timestamp, err = parse_timestamp(timestamp_string, "%Y-%m-%dT%H:%M:%S.%fZ", timezone: "Etc/UTC")
179179
if err == null {
180180
.timestamp = parsed_timestamp
181181
} else {
@@ -212,7 +212,9 @@ commands:
212212
# Extends the processed files with the fields "container" and "file"
213213
extended_logs_files:
214214
inputs:
215-
- processed_files_*
215+
- processed_files_stdout
216+
- processed_files_stderr
217+
- processed_files_airlift
216218
type: remap
217219
source: |
218220
del(.source_type)
@@ -250,7 +252,8 @@ commands:
250252
# Add the fields "namespace", "cluster", "role" and "roleGroup" to all logs
251253
extended_logs:
252254
inputs:
253-
- extended_logs_*
255+
- extended_logs_files
256+
- extended_logs_vector
254257
type: remap
255258
source: |
256259
.namespace = "${NAMESPACE}"
@@ -264,7 +267,11 @@ commands:
264267
inputs:
265268
- extended_logs
266269
type: vector
267-
address: ${VECTOR_AGGREGATOR_ADDRESS}
270+
routing:
271+
endpoints:
272+
- ${VECTOR_AGGREGATOR_ADDRESS}
273+
compression: zstd
274+
keepalive: {}
268275
{% endif %}
269276
YAMLEOF
270277
)
@@ -428,7 +435,7 @@ commands:
428435

429436
timestamp_string, err = string(event.timestamp)
430437
if err == null {
431-
parsed_timestamp, err = parse_timestamp(timestamp_string, "%Y-%m-%dT%H:%M:%S.%fZ")
438+
parsed_timestamp, err = parse_timestamp(timestamp_string, "%Y-%m-%dT%H:%M:%S.%fZ", timezone: "Etc/UTC")
432439
if err == null {
433440
.timestamp = parsed_timestamp
434441
} else {
@@ -465,7 +472,9 @@ commands:
465472
# Extends the processed files with the fields "container" and "file"
466473
extended_logs_files:
467474
inputs:
468-
- processed_files_*
475+
- processed_files_stdout
476+
- processed_files_stderr
477+
- processed_files_airlift
469478
type: remap
470479
source: |
471480
del(.source_type)
@@ -503,7 +512,8 @@ commands:
503512
# Add the fields "namespace", "cluster", "role" and "roleGroup" to all logs
504513
extended_logs:
505514
inputs:
506-
- extended_logs_*
515+
- extended_logs_files
516+
- extended_logs_vector
507517
type: remap
508518
source: |
509519
.namespace = "${NAMESPACE}"
@@ -517,7 +527,11 @@ commands:
517527
inputs:
518528
- extended_logs
519529
type: vector
520-
address: ${VECTOR_AGGREGATOR_ADDRESS}
530+
routing:
531+
endpoints:
532+
- ${VECTOR_AGGREGATOR_ADDRESS}
533+
compression: zstd
534+
keepalive: {}
521535
{% endif %}
522536
YAMLEOF
523537
)

0 commit comments

Comments
 (0)