From 493df1a9d3b1cea55ffa33673c59253c69a0f511 Mon Sep 17 00:00:00 2001 From: drivebyer Date: Fri, 7 Feb 2025 21:17:38 +0800 Subject: [PATCH] fix Signed-off-by: drivebyer --- tests/e2e-chainsaw/v1beta2/setup/ha/chainsaw-test.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/e2e-chainsaw/v1beta2/setup/ha/chainsaw-test.yaml b/tests/e2e-chainsaw/v1beta2/setup/ha/chainsaw-test.yaml index 1815950f6..938912587 100644 --- a/tests/e2e-chainsaw/v1beta2/setup/ha/chainsaw-test.yaml +++ b/tests/e2e-chainsaw/v1beta2/setup/ha/chainsaw-test.yaml @@ -44,12 +44,13 @@ spec: (contains($stdout, 'OK')): true # New created cluster, the first pod is master - - name: Shutdown the node which redis-replication-0 pod is scheduled to + - name: Cordon the node which redis-replication-0 pod is scheduled to try: - script: timeout: 10s content: | - docker stop $(kubectl -n ${NAMESPACE} get pod redis-replication-0 -o jsonpath='{.spec.nodeName}') + kubectl cordon $(kubectl -n ${NAMESPACE} get pod redis-replication-0 -o jsonpath='{.spec.nodeName}'); + kubectl -n ${NAMESPACE} delete pod redis-replication-0 - sleep: duration: 120s @@ -76,9 +77,9 @@ spec: check: (contains($stdout, 'OK')): true - - name: Start the node which redis-sentinel-sentinel-0 pod is scheduled to + - name: Uncordon the node which redis-sentinel-sentinel-0 pod is scheduled to try: - script: timeout: 10s content: | - docker start $(kubectl -n ${NAMESPACE} get pod redis-sentinel-sentinel-0 -o jsonpath='{.spec.nodeName}') + kubectl uncordon $(kubectl -n ${NAMESPACE} get pod redis-sentinel-sentinel-0 -o jsonpath='{.spec.nodeName}')