Skip to content

Commit a22c9c6

Browse files
committed
add vector aggregator to test
1 parent cbe9988 commit a22c9c6

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
apiVersion: kuttl.dev/v1beta1
3+
kind: TestAssert
4+
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
5+
---
6+
apiVersion: v1
7+
kind: ConfigMap
8+
metadata:
9+
name: vector-aggregator-discovery
10+
{% endif %}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
2+
---
3+
apiVersion: v1
4+
kind: ConfigMap
5+
metadata:
6+
name: vector-aggregator-discovery
7+
data:
8+
ADDRESS: {{ lookup('env', 'VECTOR_AGGREGATOR') }}
9+
{% endif %}

tests/templates/kuttl/opensearch-dashboards/10-install-opensearch.yaml.j2

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@ spec:
1212
productVersion: "{{ test_scenario['values']['opensearch'] }}"
1313
{% endif %}
1414
pullPolicy: IfNotPresent
15+
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
16+
clusterConfig:
17+
vectorAggregatorConfigMapName: vector-aggregator-discovery
18+
{% endif %}
1519
nodes:
20+
config:
21+
logging:
22+
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
1623
roleGroups:
1724
cluster-manager:
1825
config:

0 commit comments

Comments
 (0)