From 2e5ac31e013cd0950dbca09bc26246a9171bc805 Mon Sep 17 00:00:00 2001 From: Ash Date: Fri, 17 Jan 2025 10:05:54 +0800 Subject: [PATCH 1/2] chore: add kill pod audit template Signed-off-by: Ash --- shell/app/modules/org/common/audit-templates.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/shell/app/modules/org/common/audit-templates.json b/shell/app/modules/org/common/audit-templates.json index 5866d14018..f4cc63e977 100644 --- a/shell/app/modules/org/common/audit-templates.json +++ b/shell/app/modules/org/common/audit-templates.json @@ -1893,6 +1893,17 @@ "en": "" } }, + "killPod": { + "desc": "删除 Pod", + "success": { + "zh": "在环境 [@workspace] 中的 [@projectName] 项目 / [@appName] 应用下,成功删除了运行时 [@runtime] 的 Pod 实例 [@podName]", + "en": "Successfully deleted the Pod instance [@podName] of runtime [@runtime] in the [@projectName] project / [@appName] app under the [@workspace] environment" + }, + "fail": { + "zh": "", + "en": "" + } + }, "archiveTestPlan": { "desc": "测试计划归档", "success": { From aa08fd6f310587460e23cd6cb4ba7155f435b4f4 Mon Sep 17 00:00:00 2001 From: Ash Date: Fri, 17 Jan 2025 10:27:49 +0800 Subject: [PATCH 2/2] chore: optimize kill pod success tips Signed-off-by: Ash --- shell/app/modules/org/common/audit-templates.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/app/modules/org/common/audit-templates.json b/shell/app/modules/org/common/audit-templates.json index f4cc63e977..ec5667a07a 100644 --- a/shell/app/modules/org/common/audit-templates.json +++ b/shell/app/modules/org/common/audit-templates.json @@ -1896,8 +1896,8 @@ "killPod": { "desc": "删除 Pod", "success": { - "zh": "在环境 [@workspace] 中的 [@projectName] 项目 / [@appName] 应用下,成功删除了运行时 [@runtime] 的 Pod 实例 [@podName]", - "en": "Successfully deleted the Pod instance [@podName] of runtime [@runtime] in the [@projectName] project / [@appName] app under the [@workspace] environment" + "zh": "在 [@workspace] 环境的应用 [@projectName](project) / [@appName](app) 中,成功删除了运行时 [@runtime] 的 Pod 实例 [@podName]", + "en": "Successfully deleted the Pod instance [@podName] of runtime [@runtime] in the [@projectName](project) / [@appName](app) app under the [@workspace] environment" }, "fail": { "zh": "",