crictl allow setting grace period for stop containers upon reset (#10651)

* crictl allow setting different grace period for stop containers and pods

* correct grace period location
This commit is contained in:
Noam
2024-01-22 18:11:08 +02:00
committed by GitHub
parent a45a40a398
commit 3e7b568d3e
2 changed files with 4 additions and 1 deletions

View File

@@ -52,7 +52,7 @@
register: crictl
- name: Reset | stop all cri containers
shell: "set -o pipefail && {{ bin_dir }}/crictl ps -q | xargs -r {{ bin_dir }}/crictl -t 60s stop"
shell: "set -o pipefail && {{ bin_dir }}/crictl ps -q | xargs -r {{ bin_dir }}/crictl -t 60s stop -t {{ cri_stop_containers_grace_period }}"
args:
executable: /bin/bash
register: remove_all_cri_containers