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
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ metadata:
name: test-kafka
spec:
image:
{% if test_scenario['values']['kafka-latest'].find(",") > 0 %}
custom: "{{ test_scenario['values']['kafka-latest'].split(',')[1] }}"
productVersion: "{{ test_scenario['values']['kafka-latest'].split(',')[0] }}"
{% else %}
productVersion: "{{ test_scenario['values']['kafka-latest'] }}"
{% endif %}
pullPolicy: IfNotPresent
clusterConfig:
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
Expand Down
5 changes: 5 additions & 0 deletions tests/templates/kuttl/cluster-operation/30-stop-kafka.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ metadata:
name: test-kafka
spec:
image:
{% if test_scenario['values']['kafka-latest'].find(",") > 0 %}
custom: "{{ test_scenario['values']['kafka-latest'].split(',')[1] }}"
productVersion: "{{ test_scenario['values']['kafka-latest'].split(',')[0] }}"
{% else %}
productVersion: "{{ test_scenario['values']['kafka-latest'] }}"
{% endif %}
pullPolicy: IfNotPresent
clusterConfig:
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ metadata:
name: test-kafka
spec:
image:
{% if test_scenario['values']['kafka-latest'].find(",") > 0 %}
custom: "{{ test_scenario['values']['kafka-latest'].split(',')[1] }}"
productVersion: "{{ test_scenario['values']['kafka-latest'].split(',')[0] }}"
{% else %}
productVersion: "{{ test_scenario['values']['kafka-latest'] }}"
{% endif %}
pullPolicy: IfNotPresent
clusterConfig:
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ metadata:
name: test-kafka
spec:
image:
{% if test_scenario['values']['kafka-latest'].find(",") > 0 %}
custom: "{{ test_scenario['values']['kafka-latest'].split(',')[1] }}"
productVersion: "{{ test_scenario['values']['kafka-latest'].split(',')[0] }}"
{% else %}
productVersion: "{{ test_scenario['values']['kafka-latest'] }}"
{% endif %}
clusterConfig:
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
vectorAggregatorConfigMapName: vector-aggregator-discovery
Expand Down
5 changes: 5 additions & 0 deletions tests/templates/kuttl/configuration/20-install-kafka.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ metadata:
name: test-kafka
spec:
image:
{% if test_scenario['values']['kafka-latest'].find(",") > 0 %}
custom: "{{ test_scenario['values']['kafka-latest'].split(',')[1] }}"
productVersion: "{{ test_scenario['values']['kafka-latest'].split(',')[0] }}"
{% else %}
productVersion: "{{ test_scenario['values']['kafka-latest'] }}"
{% endif %}
pullPolicy: IfNotPresent
clusterConfig:
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ metadata:
name: test-kafka
spec:
image:
{% if test_scenario['values']['kafka'].find(",") > 0 %}
custom: "{{ test_scenario['values']['kafka'].split(',')[1] }}"
productVersion: "{{ test_scenario['values']['kafka'].split(',')[0] }}"
{% else %}
productVersion: "{{ test_scenario['values']['kafka'] }}"
{% endif %}
pullPolicy: IfNotPresent
clusterConfig:
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ metadata:
name: test-kafka
spec:
image:
{% if test_scenario['values']['kafka'].find(",") > 0 %}
custom: "{{ test_scenario['values']['kafka'].split(',')[1] }}"
productVersion: "{{ test_scenario['values']['kafka'].split(',')[0] }}"
{% else %}
productVersion: "{{ test_scenario['values']['kafka'] }}"
{% endif %}
clusterConfig:
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
vectorAggregatorConfigMapName: vector-aggregator-discovery
Expand Down
5 changes: 5 additions & 0 deletions tests/templates/kuttl/logging/04-install-kafka.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ metadata:
name: test-kafka
spec:
image:
{% if test_scenario['values']['kafka'].find(",") > 0 %}
custom: "{{ test_scenario['values']['kafka'].split(',')[1] }}"
productVersion: "{{ test_scenario['values']['kafka'].split(',')[0] }}"
{% else %}
productVersion: "{{ test_scenario['values']['kafka'] }}"
{% endif %}
pullPolicy: IfNotPresent
clusterConfig:
tls:
Expand Down
5 changes: 5 additions & 0 deletions tests/templates/kuttl/smoke/30-install-kafka.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ metadata:
name: test-kafka
spec:
image:
{% if test_scenario['values']['kafka'].find(",") > 0 %}
custom: "{{ test_scenario['values']['kafka'].split(',')[1] }}"
productVersion: "{{ test_scenario['values']['kafka'].split(',')[0] }}"
{% else %}
productVersion: "{{ test_scenario['values']['kafka'] }}"
{% endif %}
pullPolicy: IfNotPresent
clusterConfig:
tls:
Expand Down
5 changes: 5 additions & 0 deletions tests/templates/kuttl/tls/20-install-kafka.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ metadata:
name: test-kafka
spec:
image:
{% if test_scenario['values']['kafka'].find(",") > 0 %}
custom: "{{ test_scenario['values']['kafka'].split(',')[1] }}"
productVersion: "{{ test_scenario['values']['kafka'].split(',')[0] }}"
{% else %}
productVersion: "{{ test_scenario['values']['kafka'] }}"
{% endif %}
pullPolicy: IfNotPresent
clusterConfig:
{% if test_scenario['values']['use-client-auth-tls'] == 'true' %}
Expand Down
6 changes: 6 additions & 0 deletions tests/test-definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@ dimensions:
values:
- 3.7.1
- 3.8.0
# Alternatively, if you want to use a custom image, append a comma and the full image name to the product version
# as in the example below.
# - 3.8.0,docker.stackable.tech/stackable/kafka:3.8.0-stackable0.0.0-dev
- name: kafka-latest
values:
- 3.7.1 # Using LTS version here
# Alternatively, if you want to use a custom image, append a comma and the full image name to the product version
# as in the example below.
# - 3.7.1,docker.stackable.tech/stackable/kafka:3.7.1-stackable0.0.0-dev
- name: zookeeper
values:
- 3.9.2
Expand Down
Loading