From c949d6e58d5acf6cf2fe54be405d2a48b545ebfe Mon Sep 17 00:00:00 2001 From: Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com> Date: Mon, 28 Aug 2023 18:37:45 -0400 Subject: [PATCH] Wait for termination grace period when scaling down the deployments (#1537) --- roles/installer/tasks/scale_down_deployment.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/installer/tasks/scale_down_deployment.yml b/roles/installer/tasks/scale_down_deployment.yml index 6f0a63ef..5e8ee038 100644 --- a/roles/installer/tasks/scale_down_deployment.yml +++ b/roles/installer/tasks/scale_down_deployment.yml @@ -16,6 +16,7 @@ namespace: "{{ ansible_operator_meta.namespace }}" replicas: 0 wait: yes + wait_timeout: "{{ termination_grace_period_seconds | default(120) }}" loop: - "{{ ansible_operator_meta.name }}-task" - "{{ ansible_operator_meta.name }}-web"