File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {% if test_scenario ['values' ]['use-kraft-controller' ] == 'false' %}
12---
23apiVersion: kuttl.dev/v1beta1
34kind: TestAssert
@@ -10,3 +11,4 @@ metadata:
1011status:
1112 readyReplicas: 1
1213 replicas: 1
14+ {% endif %}
Original file line number Diff line number Diff line change 1+ {% if test_scenario ['values' ]['use-kraft-controller' ] == 'false' %}
12---
23apiVersion: zookeeper.stackable.tech/v1alpha1
34kind: ZookeeperCluster
@@ -26,3 +27,4 @@ metadata:
2627spec:
2728 clusterRef:
2829 name: test-zk
30+ {% endif %}
Load diff This file was deleted.
Original file line number Diff line number Diff line change 1+ ---
2+ apiVersion: kuttl.dev/v1beta1
3+ kind: TestAssert
4+ timeout: 600
5+ ---
6+ apiVersion: apps/v1
7+ kind: StatefulSet
8+ metadata:
9+ name: test-kafka-broker-automatic-log-config
10+ status:
11+ readyReplicas: 1
12+ replicas: 1
13+ ---
14+ apiVersion: apps/v1
15+ kind: StatefulSet
16+ metadata:
17+ name: test-kafka-broker-custom-log-config
18+ status:
19+ readyReplicas: 1
20+ replicas: 1
21+ {% if test_scenario ['values' ]['use-kraft-controller' ] == 'true' %}
22+ ---
23+ apiVersion: apps/v1
24+ kind: StatefulSet
25+ metadata:
26+ name: test-kafka-controller-automatic-log-config
27+ status:
28+ readyReplicas: 1
29+ replicas: 1
30+ ---
31+ apiVersion: apps/v1
32+ kind: StatefulSet
33+ metadata:
34+ name: test-kafka-controller-custom-log-config
35+ status:
36+ readyReplicas: 1
37+ replicas: 1
38+ {% endif %}
Original file line number Diff line number Diff line change 3636 tls:
3737 serverSecretClass: null
3838 vectorAggregatorConfigMapName: kafka-vector-aggregator-discovery
39+ {% if test_scenario ['values' ]['use-kraft-controller' ] == 'false' %}
3940 zookeeperConfigMapName: test-kafka-znode
41+ {% else %}
42+ controllers:
43+ roleGroups:
44+ automatic-log-config:
45+ replicas: 1
46+ config:
47+ logging:
48+ enableVectorAgent: true
49+ containers:
50+ kafka:
51+ console:
52+ level: INFO
53+ file:
54+ level: INFO
55+ loggers:
56+ ROOT:
57+ level: INFO
58+ vector:
59+ console:
60+ level: INFO
61+ file:
62+ level: INFO
63+ loggers:
64+ ROOT:
65+ level: INFO
66+ podOverrides:
67+ spec:
68+ containers:
69+ - name: vector
70+ volumeMounts:
71+ - name: prepared-logs
72+ mountPath: /stackable/log/prepared-logs
73+ volumes:
74+ - name: prepared-logs
75+ configMap:
76+ name: prepared-logs
77+ custom-log-config:
78+ replicas: 1
79+ config:
80+ logging:
81+ enableVectorAgent: true
82+ containers:
83+ kafka:
84+ custom:
85+ configMap: kafka-log-config
86+ {% endif %}
4087 brokers:
4188 roleGroups:
4289 automatic-log-config:
Original file line number Diff line number Diff line change @@ -48,6 +48,32 @@ customConfig:
4848 condition: >-
4949 .pod == "test-kafka-broker-custom-log-config-0" &&
5050 .container == "vector"
51+ {% if test_scenario ['values' ]['use-kraft-controller' ] == 'true' %}
52+ filteredAutomaticLogConfigControllerKafka:
53+ type: filter
54+ inputs: [validEvents]
55+ condition: >-
56+ .pod == "test-kafka-controller-automatic-log-config-0" &&
57+ .container == "kafka"
58+ filteredAutomaticLogConfigControllerVector:
59+ type: filter
60+ inputs: [validEvents]
61+ condition: >-
62+ .pod == "test-kafka-controller-automatic-log-config-0" &&
63+ .container == "vector"
64+ filteredCustomLogConfigControllerKafka:
65+ type: filter
66+ inputs: [validEvents]
67+ condition: >-
68+ .pod == "test-kafka-controller-custom-log-config-0" &&
69+ .container == "kafka"
70+ filteredCustomLogConfigControllerVector:
71+ type: filter
72+ inputs: [validEvents]
73+ condition: >-
74+ .pod == "test-kafka-controller-custom-log-config-0" &&
75+ .container == "vector"
76+ {% endif %}
5177 filteredInvalidEvents:
5278 type: filter
5379 inputs: [vector]
Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ tests:
104104 dimensions :
105105 - kafka
106106 - zookeeper-latest
107+ - use-kraft-controller
107108 - openshift
108109 - name : cluster-operation
109110 dimensions :
You can’t perform that action at this time.
0 commit comments