1 Star 0 Fork 10

L.X./Kmesh_2

forked from src-openEuler/Kmesh 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Fix-pod-management-cannot-be-canceled.patch 920 Bytes
一键复制 编辑 原始数据 按行查看 历史
weli-l 提交于 2024-08-05 15:12 . upgrade Kmesh to 0.4.0
From f75438dd75c2991f396d4d5c7f8fc4d11410bd5d Mon Sep 17 00:00:00 2001
From: weli-l <1289113577@qq.com>
Date: Thu, 11 Jul 2024 16:35:22 +0800
Subject: [PATCH] fix pod management cannot be canceld
---
pkg/controller/manage/kmesh_manage.go | 3 ---
1 file changed, 3 deletions(-)
diff --git a/pkg/controller/manage/kmesh_manage.go b/pkg/controller/manage/kmesh_manage.go
index f79dee4..f273083 100644
--- a/pkg/controller/manage/kmesh_manage.go
+++ b/pkg/controller/manage/kmesh_manage.go
@@ -210,9 +210,6 @@ func shouldEnroll(client kubernetes.Interface, pod *corev1.Pod) bool {
if strings.EqualFold(pod.Labels[constants.DataPlaneModeLabel], constants.DataPlaneModeKmesh) {
return true
}
- if pod.Annotations[constants.KmeshRedirectionAnnotation] == "enabled" {
- return true
- }
ns, err := client.CoreV1().Namespaces().Get(context.TODO(), pod.Namespace, metav1.GetOptions{})
if err != nil {
--
2.34.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bitcoffee/Kmesh_2.git
git@gitee.com:bitcoffee/Kmesh_2.git
bitcoffee
Kmesh_2
Kmesh_2
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385