Skip to content

Commit

Permalink
refact(e2e): Scale down the application deployment to single replica (#…
Browse files Browse the repository at this point in the history
…419)


Co-authored-by: Aman Gupta <aman@aman-mbp1.local>
  • Loading branch information
w3aman and Aman Gupta authored Apr 11, 2022
1 parent 2c77fc7 commit 29734a3
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
delay: 15
retries: 30

# wait 5 minutes
# wait for 5 minutes
- name: Wait for the application pod to get evicted
wait_for:
timeout: 300
Expand Down Expand Up @@ -260,6 +260,13 @@
pod_name: "{{ scaled_pod_name.stdout }}"
when: data_persistence != ''

- name: Scale down the deployment again to single replica
shell: kubectl scale deploy -n {{ namespace }} "{{ app_deploy_name.stdout }}" --replicas=1
args:
executable: /bin/bash
register: scale_deploy
failed_when: scale_deploy.rc != 0

- set_fact:
flag: "Pass"

Expand Down

0 comments on commit 29734a3

Please sign in to comment.