From 0218f15b2776139e350e8abfc08b9d3394f53d5a Mon Sep 17 00:00:00 2001 From: lwpk110 Date: Tue, 14 Jan 2025 17:47:50 +0800 Subject: [PATCH] test(e2e): update Kafka topic access script and resource limits --- test/e2e/tls/client-tls-access-configmap.yaml | 2 +- test/e2e/tls/client-tls-access-pod.txt | 2 +- test/e2e/tls/kafka.yaml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/e2e/tls/client-tls-access-configmap.yaml b/test/e2e/tls/client-tls-access-configmap.yaml index 7315fc6..438371d 100755 --- a/test/e2e/tls/client-tls-access-configmap.yaml +++ b/test/e2e/tls/client-tls-access-configmap.yaml @@ -31,7 +31,7 @@ data: exit 1 fi - if /kubedoop/kafka/bin/kafka-topics.sh --list --topic "$TOPIC" --bootstrap-server "$KAFKA" --command-config --timeout-ms 30000 /tmp/client.config | grep "$TOPIC" + if /kubedoop/kafka/bin/kafka-topics.sh --list --topic "$TOPIC" --bootstrap-server "$KAFKA" --command-config /tmp/client.config | grep "$TOPIC" then echo "[SUCCESS] Secure client topic read!" else diff --git a/test/e2e/tls/client-tls-access-pod.txt b/test/e2e/tls/client-tls-access-pod.txt index b79b729..00874c4 100644 --- a/test/e2e/tls/client-tls-access-pod.txt +++ b/test/e2e/tls/client-tls-access-pod.txt @@ -27,7 +27,7 @@ spec: resources: limits: memory: "1.5Gi" - cpu: "300m" + cpu: "400m" volumeMounts: - name: client-tls mountPath: /kubedoop/client-tls diff --git a/test/e2e/tls/kafka.yaml b/test/e2e/tls/kafka.yaml index 88294b8..43ea10e 100644 --- a/test/e2e/tls/kafka.yaml +++ b/test/e2e/tls/kafka.yaml @@ -24,7 +24,7 @@ spec: config: resources: cpu: - min: 200m - max: 400m + min: 300m + max: 600m memory: limit: "1Gi"