Skip to content

Commit 4d1a2ed

Browse files
committed
fix: consolidate vector logging, adapt snapshot tests, add executor logging test
1 parent 07cd672 commit 4d1a2ed

11 files changed

Lines changed: 409 additions & 2349 deletions

rust/operator-binary/src/product_logging/vector.yaml

Lines changed: 6 additions & 378 deletions
Large diffs are not rendered by default.

tests/templates/kuttl/smoke/43-assert.yaml.j2

Lines changed: 24 additions & 390 deletions
Large diffs are not rendered by default.

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

Lines changed: 104 additions & 792 deletions
Large diffs are not rendered by default.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
---
22
apiVersion: kuttl.dev/v1beta1
33
kind: TestAssert
4+
timeout: 600
45
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
56
---
67
apiVersion: v1
78
kind: ConfigMap
89
metadata:
910
name: vector-aggregator-discovery
11+
---
12+
apiVersion: apps/v1
13+
kind: StatefulSet
14+
metadata:
15+
name: spark-connect-vector-aggregator
16+
status:
17+
readyReplicas: 1
18+
replicas: 1
1019
{% endif %}

tests/templates/kuttl/spark-connect/01-install-vector-aggregator-discovery-configmap.yaml.j2

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
2+
---
3+
apiVersion: kuttl.dev/v1beta1
4+
kind: TestStep
5+
commands:
6+
# A dedicated Vector aggregator is installed (rather than pointing the discovery
7+
# ConfigMap straight at VECTOR_AGGREGATOR) so the test can query its observability
8+
# API to assert that the Spark Connect server and executor Vector sidecars actually
9+
# ship log events. It forwards everything on to VECTOR_AGGREGATOR as well.
10+
- script: >-
11+
helm install spark-connect-vector-aggregator vector
12+
--namespace $NAMESPACE
13+
--version 0.52.0 `# app version 0.55.0`
14+
--repo https://helm.vector.dev
15+
--values spark-connect-vector-aggregator-values.yaml
16+
---
17+
apiVersion: v1
18+
kind: ConfigMap
19+
metadata:
20+
name: vector-aggregator-discovery
21+
data:
22+
ADDRESS: spark-connect-vector-aggregator:6123
23+
{% endif %}

0 commit comments

Comments
 (0)