Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: drivebyer <[email protected]>
  • Loading branch information
drivebyer committed Feb 7, 2025
1 parent 0cb9eb8 commit 493df1a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/e2e-chainsaw/v1beta2/setup/ha/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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}')

0 comments on commit 493df1a

Please sign in to comment.