[skip e2e]Update etcd follower num to apply chaos (#27083)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
pull/27107/head
zhuwenxing 2023-09-14 12:13:18 +08:00 committed by GitHub
parent edde3cf1c7
commit 17375541a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -82,6 +82,9 @@ class TestChaosApply:
if etcd_followers is None:
raise Exception("no etcd followers")
target_pod_list.extend(etcd_followers)
if len(target_pod_list) >=2:
# only choose one follower to apply chaos
target_pod_list = target_pod_list[0]
log.info(f"target_pod_list: {target_pod_list}")
chaos_type = chaos_type.replace('_', '-')
chaos_config = cc.gen_experiment_config(f"{str(Path(__file__).absolute().parent)}/chaos_objects/template/{chaos_type}-by-pod-list.yaml")