Skip to content

Commit 57f31e7

Browse files
committed
remove obsolete zk/kraft checks
1 parent ec249b5 commit 57f31e7

29 files changed

Lines changed: 25 additions & 200 deletions

tests/templates/kuttl/cluster-operation/10-assert.yaml.j2 renamed to tests/templates/kuttl/cluster-operation/10-assert.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{% if test_scenario['values']['zookeeper-latest'] != 'false' %}
21
---
32
apiVersion: kuttl.dev/v1beta1
43
kind: TestAssert
@@ -11,4 +10,3 @@ metadata:
1110
status:
1211
readyReplicas: 1
1312
replicas: 1
14-
{% endif %}

tests/templates/kuttl/cluster-operation/10-install-zk.yaml.j2

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{% if test_scenario['values']['zookeeper-latest'] != 'false' %}
21
---
32
apiVersion: zookeeper.stackable.tech/v1alpha1
43
kind: ZookeeperCluster
@@ -19,4 +18,3 @@ spec:
1918
roleGroups:
2019
default:
2120
replicas: 1
22-
{% endif %}

tests/templates/kuttl/cluster-operation/20-assert.yaml.j2 renamed to tests/templates/kuttl/cluster-operation/20-assert.yaml

File renamed without changes.

tests/templates/kuttl/cluster-operation/20-install-kafka.yaml.j2

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,11 @@ spec:
1616
productVersion: "{{ test_scenario['values']['kafka-latest'] }}"
1717
{% endif %}
1818
pullPolicy: IfNotPresent
19-
{% if lookup('env', 'VECTOR_AGGREGATOR') or test_scenario['values']['zookeeper-latest'] != 'false' %}
2019
clusterConfig:
21-
{% endif %}
2220
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
2321
vectorAggregatorConfigMapName: vector-aggregator-discovery
2422
{% endif %}
25-
{% if test_scenario['values']['zookeeper-latest'] != 'false' %}
2623
zookeeperConfigMapName: test-zk
27-
{% else %}
28-
controllers:
29-
config:
30-
logging:
31-
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
32-
roleGroups:
33-
default:
34-
replicas: 1
35-
{% endif %}
3624
brokers:
3725
config:
3826
logging:

tests/templates/kuttl/cluster-operation/30-assert.yaml.j2 renamed to tests/templates/kuttl/cluster-operation/30-assert.yaml

File renamed without changes.

tests/templates/kuttl/cluster-operation/30-stop-kafka.yaml.j2

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,11 @@ spec:
1616
productVersion: "{{ test_scenario['values']['kafka-latest'] }}"
1717
{% endif %}
1818
pullPolicy: IfNotPresent
19-
{% if lookup('env', 'VECTOR_AGGREGATOR') or test_scenario['values']['zookeeper-latest'] != 'false' %}
2019
clusterConfig:
21-
{% endif %}
2220
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
2321
vectorAggregatorConfigMapName: vector-aggregator-discovery
2422
{% endif %}
25-
{% if test_scenario['values']['zookeeper-latest'] != 'false' %}
2623
zookeeperConfigMapName: test-zk
27-
{% else %}
28-
brokers:
29-
config:
30-
logging:
31-
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
32-
roleGroups:
33-
default:
34-
replicas: 1
35-
{% endif %}
3624
brokers:
3725
config:
3826
logging:

tests/templates/kuttl/cluster-operation/40-assert.yaml.j2 renamed to tests/templates/kuttl/cluster-operation/40-assert.yaml

File renamed without changes.

tests/templates/kuttl/cluster-operation/40-pause-kafka.yaml.j2

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,11 @@ spec:
1616
productVersion: "{{ test_scenario['values']['kafka-latest'] }}"
1717
{% endif %}
1818
pullPolicy: IfNotPresent
19-
{% if lookup('env', 'VECTOR_AGGREGATOR') or test_scenario['values']['zookeeper-latest'] != 'false' %}
2019
clusterConfig:
21-
{% endif %}
2220
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
2321
vectorAggregatorConfigMapName: vector-aggregator-discovery
2422
{% endif %}
25-
{% if test_scenario['values']['zookeeper-latest'] != 'false' %}
2623
zookeeperConfigMapName: test-zk
27-
{% else %}
28-
controllers:
29-
config:
30-
logging:
31-
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
32-
roleGroups:
33-
default:
34-
replicas: 1
35-
{% endif %}
3624
brokers:
3725
config:
3826
logging:

tests/templates/kuttl/cluster-operation/50-assert.yaml.j2 renamed to tests/templates/kuttl/cluster-operation/50-assert.yaml

File renamed without changes.

tests/templates/kuttl/cluster-operation/50-restart-kafka.yaml.j2

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,11 @@ spec:
1515
{% else %}
1616
productVersion: "{{ test_scenario['values']['kafka-latest'] }}"
1717
{% endif %}
18-
{% if lookup('env', 'VECTOR_AGGREGATOR') or test_scenario['values']['zookeeper-latest'] != 'false' %}
1918
clusterConfig:
20-
{% endif %}
2119
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
2220
vectorAggregatorConfigMapName: vector-aggregator-discovery
2321
{% endif %}
24-
{% if test_scenario['values']['zookeeper-latest'] != 'false' %}
2522
zookeeperConfigMapName: test-zk
26-
{% else %}
27-
controllers:
28-
config:
29-
logging:
30-
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
31-
roleGroups:
32-
default:
33-
replicas: 1
34-
{% endif %}
3523
brokers:
3624
config:
3725
logging:

0 commit comments

Comments
 (0)