Skip to content

Commit ec249b5

Browse files
committed
tests: disable scaling for kraft 3.7
1 parent ffc208e commit ec249b5

5 files changed

Lines changed: 11 additions & 2 deletions

File tree

tests/templates/kuttl/operations-kraft/60-assert.yaml.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{% if not test_scenario['values']['kafka-kraft'].startswith("3.7") %}
12
---
23
apiVersion: kuttl.dev/v1beta1
34
kind: TestAssert
@@ -19,3 +20,4 @@ metadata:
1920
status:
2021
readyReplicas: 5
2122
replicas: 5
23+
{% endif %}

tests/templates/kuttl/operations-kraft/60-scale-controller-up.yaml.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{% if not test_scenario['values']['kafka-kraft'].startswith("3.7") %}
12
---
23
apiVersion: kuttl.dev/v1beta1
34
kind: TestStep
@@ -36,3 +37,4 @@ spec:
3637
clusterOperation:
3738
stopped: false
3839
reconciliationPaused: false
40+
{% endif %}

tests/templates/kuttl/operations-kraft/70-assert.yaml.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{% if not test_scenario['values']['kafka-kraft'].startswith("3.7") %}
12
---
23
apiVersion: kuttl.dev/v1beta1
34
kind: TestAssert
@@ -19,3 +20,4 @@ metadata:
1920
status:
2021
readyReplicas: 3
2122
replicas: 3
23+
{% endif %}

tests/templates/kuttl/operations-kraft/70-scale-controller-down.yaml.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{% if not test_scenario['values']['kafka-kraft'].startswith("3.7") %}
12
---
23
apiVersion: kuttl.dev/v1beta1
34
kind: TestStep
@@ -36,3 +37,4 @@ spec:
3637
clusterOperation:
3738
stopped: false
3839
reconciliationPaused: false
40+
{% endif %}

tests/templates/kuttl/operations-kraft/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
21
Tests Kraft cluster operations:
32

43
- Cluster stop/pause/restart
54
- Scale brokers up/down
65
- Scale controllers up/down
76

8-
TODO:
7+
Notes
98

9+
- Kafka 3.7 controllers do not scale at all.
10+
The scaling test steps are disabled for this version.
1011
- Scaling controllers from 3 -> 1 doesn't work.
1112
Both brokers and controllers try to communicate with old controllers.
1213
This is why, the last step scales from 5 -> 3 controllers.

0 commit comments

Comments
 (0)