Skip to content

Commit 29734a3

Browse files
w3amanAman Gupta
andauthored
refact(e2e): Scale down the application deployment to single replica (#419)
Co-authored-by: Aman Gupta <aman@aman-mbp1.local>
1 parent 2c77fc7 commit 29734a3

File tree

1 file changed

+8
-1
lines changed
  • e2e-tests/experiments/infra-chaos/multiple_application_on_single_volume

1 file changed

+8
-1
lines changed

e2e-tests/experiments/infra-chaos/multiple_application_on_single_volume/test.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181
delay: 15
182182
retries: 30
183183

184-
# wait 5 minutes
184+
# wait for 5 minutes
185185
- name: Wait for the application pod to get evicted
186186
wait_for:
187187
timeout: 300
@@ -260,6 +260,13 @@
260260
pod_name: "{{ scaled_pod_name.stdout }}"
261261
when: data_persistence != ''
262262

263+
- name: Scale down the deployment again to single replica
264+
shell: kubectl scale deploy -n {{ namespace }} "{{ app_deploy_name.stdout }}" --replicas=1
265+
args:
266+
executable: /bin/bash
267+
register: scale_deploy
268+
failed_when: scale_deploy.rc != 0
269+
263270
- set_fact:
264271
flag: "Pass"
265272

0 commit comments

Comments
 (0)