Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ All notable changes to this project will be documented in this file.
the new labels ([#748]).
- Make operations infallible where dependent on static inputs ([#759], [#764]).
- Bump stackable-operator to 0.119.0 ([#770]).
- test: Bump vector-aggregator to 0.58.0 ([#776]).
- Support Vector 0.58.0 ([#776], [#780]).
- test: Update OPA to 1.20.2 in integration tests ([#778]).
- Bump stackable-operator to 0.121.0 and replace `serde_yaml` with `yaml_serde` ([#779]).
- All pods now set `securityContext.seccompProfile.type` to `RuntimeDefault` ([#779]).
Expand Down Expand Up @@ -75,6 +75,7 @@ All notable changes to this project will be documented in this file.
[#776]: https://github.com/stackabletech/hive-operator/pull/776
[#778]: https://github.com/stackabletech/hive-operator/pull/778
[#779]: https://github.com/stackabletech/hive-operator/pull/779
[#780]: https://github.com/stackabletech/hive-operator/pull/780

## [26.7.0] - 2026-07-21

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
#!/usr/bin/env sh

DATA_DIR=/stackable/log/_vector-state \
LOG_DIR=/stackable/log \
NAMESPACE=default \
CLUSTER_NAME=hive \
ROLE_NAME=metastore \
ROLE_GROUP_NAME=default \
VECTOR_AGGREGATOR_ADDRESS=vector-aggregator \
VECTOR_FILE_LOG_LEVEL=info \
vector test vector.yaml vector-test.yaml
set -eu

export DATA_DIR=/stackable/log/_vector-state
export LOG_DIR=/stackable/log
export NAMESPACE=default
export CLUSTER_NAME=hive
export ROLE_NAME=metastore
export ROLE_GROUP_NAME=default
export VECTOR_AGGREGATOR_ADDRESS=http://vector-aggregator:6000
export VECTOR_FILE_LOG_LEVEL=info

# Required because vector.yaml contains ${...} placeholders
export VECTOR_DANGEROUSLY_ALLOW_ENV_VAR_INTERPOLATION=true

vector validate --no-environment vector.yaml

vector test test-config.yaml vector.yaml vector-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ tests:
timestamp: 2025-10-02T09:27:28.582Z
outputs:
- extract_from: extended_logs
expected_event_count: 1
conditions:
- type: vrl
source: |
Expand Down Expand Up @@ -47,6 +48,7 @@ tests:
timestamp: 2025-10-02T09:27:28.582Z
outputs:
- extract_from: extended_logs
expected_event_count: 1
conditions:
- type: vrl
source: |
Expand Down Expand Up @@ -82,6 +84,7 @@ tests:
timestamp: 2025-10-02T09:27:29.473487331Z
outputs:
- extract_from: extended_logs
expected_event_count: 1
conditions:
- type: vrl
source: |
Expand Down Expand Up @@ -119,6 +122,7 @@ tests:
version: 0.49.0
outputs:
- extract_from: extended_logs
expected_event_count: 1
conditions:
- type: vrl
source: |
Expand Down Expand Up @@ -147,6 +151,7 @@ tests:
level: INFO
outputs:
- extract_from: filtered_logs_vector
expected_event_count: 1
conditions:
- type: vrl
source: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ transforms:
# Extends the processed files with the fields "container" and "file"
extended_logs_files:
inputs:
- processed_files_*
- processed_files_stdout
- processed_files_stderr
- processed_files_log4j2
type: remap
source: |
del(.source_type)
Expand Down Expand Up @@ -214,7 +216,8 @@ transforms:
# 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}"
Expand All @@ -228,4 +231,8 @@ sinks:
inputs:
- extended_logs
type: vector
address: ${VECTOR_AGGREGATOR_ADDRESS}
routing:
endpoints:
- ${VECTOR_AGGREGATOR_ADDRESS}
compression: zstd
keepalive: {}
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ kind: ConfigMap
metadata:
name: hive-vector-aggregator-discovery
data:
ADDRESS: hive-vector-aggregator:6123
ADDRESS: http://hive-vector-aggregator:6123
2 changes: 1 addition & 1 deletion tests/templates/kuttl/smoke/60-assert.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ spec:
- |-
mkdir --parents /stackable/log/_vector-state
# Vector will ignore SIGTERM (as PID != 1) and must be shut down by writing a shutdown trigger file
vector & vector_pid=$!
/stackable/bin/vector-with-env-var-interpolation & vector_pid=$!
if [ ! -f "/stackable/log/_vector/shutdown" ]; then
mkdir -p /stackable/log/_vector
inotifywait -qq --event create /stackable/log/_vector;
Expand Down
Loading