Skip to content

Commit 2189c1d

Browse files
authored
chore: raise pod probes and test timeouts (#905)
* test: raise kraft timeouts * remove junk line * raise controller pod probes timeout to 1 minute * re-enable downscale tests and ensure clean ns termination
1 parent cbfb579 commit 2189c1d

13 files changed

+83
-18
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -693,17 +693,19 @@ pub fn build_controller_rolegroup_statefulset(
693693
port: IntOrString::Int(kafka_security.client_port().into()),
694694
..Default::default()
695695
}),
696-
timeout_seconds: Some(5),
697-
period_seconds: Some(5),
696+
timeout_seconds: Some(10),
697+
period_seconds: Some(10),
698+
failure_threshold: Some(6),
698699
..Probe::default()
699700
})
700701
.readiness_probe(Probe {
701702
tcp_socket: Some(TCPSocketAction {
702703
port: IntOrString::Int(kafka_security.client_port().into()),
703704
..Default::default()
704705
}),
705-
timeout_seconds: Some(5),
706-
period_seconds: Some(5),
706+
timeout_seconds: Some(10),
707+
period_seconds: Some(10),
708+
failure_threshold: Some(6),
707709
..Probe::default()
708710
});
709711

tests/templates/kuttl/operations-kraft/20-install-kafka.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
apiVersion: kuttl.dev/v1beta1
33
kind: TestStep
4-
timeout: 300
4+
timeout: 600
55
---
66
apiVersion: kafka.stackable.tech/v1alpha1
77
kind: KafkaCluster

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
apiVersion: kuttl.dev/v1beta1
33
kind: TestAssert
4-
timeout: 300
4+
timeout: 600
55
commands:
66
- script: kubectl -n $NAMESPACE wait --for=condition=reconciliationPaused kafkaclusters.kafka.stackable.tech/test-kafka --timeout 301s
77
---

tests/templates/kuttl/operations-kraft/25-pause-kafka.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
apiVersion: kuttl.dev/v1beta1
33
kind: TestStep
4-
timeout: 300
4+
timeout: 600
55
---
66
apiVersion: kafka.stackable.tech/v1alpha1
77
kind: KafkaCluster

tests/templates/kuttl/operations-kraft/30-stop-kafka.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
apiVersion: kuttl.dev/v1beta1
33
kind: TestStep
4-
timeout: 300
4+
timeout: 600
55
---
66
apiVersion: kafka.stackable.tech/v1alpha1
77
kind: KafkaCluster

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
apiVersion: kuttl.dev/v1beta1
33
kind: TestAssert
4-
timeout: 300
4+
timeout: 600
55
commands:
66
- script: kubectl -n $NAMESPACE wait --for=condition=available kafkaclusters.kafka.stackable.tech/test-kafka --timeout 301s
77
---

tests/templates/kuttl/operations-kraft/50-restart-kafka.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
apiVersion: kuttl.dev/v1beta1
33
kind: TestStep
4-
timeout: 300
4+
timeout: 600
55
---
66
apiVersion: kafka.stackable.tech/v1alpha1
77
kind: KafkaCluster

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
---
33
apiVersion: kuttl.dev/v1beta1
44
kind: TestAssert
5-
timeout: 300
5+
timeout: 600
66
commands:
77
- script: kubectl -n $NAMESPACE wait --for=condition=available kafkaclusters.kafka.stackable.tech/test-kafka --timeout 301s
88
---

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
---
33
apiVersion: kuttl.dev/v1beta1
44
kind: TestStep
5-
timeout: 300
5+
timeout: 600
66
---
77
apiVersion: kafka.stackable.tech/v1alpha1
88
kind: KafkaCluster

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
---
33
apiVersion: kuttl.dev/v1beta1
44
kind: TestAssert
5-
timeout: 300
5+
timeout: 600
66
commands:
77
- script: kubectl -n $NAMESPACE wait --for=condition=available kafkaclusters.kafka.stackable.tech/test-kafka --timeout 301s
88
---

0 commit comments

Comments
 (0)