Skip to content

Commit d1c5516

Browse files
authored
fix: raise controller pre-stop sleep and test timeouts (#901)
* tests: raise timeouts for kraft operations * raise pre stop controller seconds to 10
1 parent 3dddc6d commit d1c5516

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

rust/operator-binary/src/resource/statefulset.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ pub fn build_controller_rolegroup_statefulset(
650650
kafka_security,
651651
&resolved_product_image.product_version,
652652
)])
653-
.add_env_var("PRE_STOP_CONTROLLER_SLEEP_SECONDS", "5")
653+
.add_env_var("PRE_STOP_CONTROLLER_SLEEP_SECONDS", "10")
654654
.add_env_var(
655655
"EXTRA_ARGS",
656656
kafka_role

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
apiVersion: kuttl.dev/v1beta1
33
kind: TestAssert
4-
timeout: 300
4+
timeout: 600
55
commands:
6-
- script: kubectl -n $NAMESPACE wait --for=condition=available kafkaclusters.kafka.stackable.tech/test-kafka --timeout 301s
6+
- script: kubectl -n $NAMESPACE wait --for=condition=available kafkaclusters.kafka.stackable.tech/test-kafka --timeout 601s
77
---
88
apiVersion: apps/v1
99
kind: StatefulSet

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
apiVersion: kuttl.dev/v1beta1
33
kind: TestAssert
4-
timeout: 300
4+
timeout: 600
55
commands:
6-
- script: kubectl -n $NAMESPACE wait --for=condition=stopped kafkaclusters.kafka.stackable.tech/test-kafka --timeout 301s
6+
- script: kubectl -n $NAMESPACE wait --for=condition=stopped kafkaclusters.kafka.stackable.tech/test-kafka --timeout 601s
77
---
88
apiVersion: apps/v1
99
kind: StatefulSet

0 commit comments

Comments
 (0)