summaryrefslogtreecommitdiff
path: root/0196-add-remove-pod-in-cri-stats.patch
diff options
context:
space:
mode:
Diffstat (limited to '0196-add-remove-pod-in-cri-stats.patch')
-rw-r--r--0196-add-remove-pod-in-cri-stats.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/0196-add-remove-pod-in-cri-stats.patch b/0196-add-remove-pod-in-cri-stats.patch
new file mode 100644
index 0000000..576db7b
--- /dev/null
+++ b/0196-add-remove-pod-in-cri-stats.patch
@@ -0,0 +1,26 @@
+From a478553bc957d0cd684883ad63fec6a639631658 Mon Sep 17 00:00:00 2001
+From: zhongtao <zhongtao17@huawei.com>
+Date: Mon, 17 Feb 2025 16:27:10 +0800
+Subject: [PATCH 196/198] add remove pod in cri stats
+
+Signed-off-by: zhongtao <zhongtao17@huawei.com>
+---
+ CI/test_cases/container_cases/cri_stats.sh | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/CI/test_cases/container_cases/cri_stats.sh b/CI/test_cases/container_cases/cri_stats.sh
+index f6acb397..72fb2856 100755
+--- a/CI/test_cases/container_cases/cri_stats.sh
++++ b/CI/test_cases/container_cases/cri_stats.sh
+@@ -66,6 +66,8 @@ function test_cri_stats()
+
+ crictl stats $cid
+ [[ $? -ne 0 ]] && msg_err "${FUNCNAME[0]}:${LINENO} - failed to get cri stats" && ((ret++))
++
++ crictl rmp -f $(crictl pods -q)
+
+ msg_info "${test} finished with return ${ret}..."
+ return ${ret}
+--
+2.34.1
+