From df1c32c91b2ac03a605b874b8273d1d4bcdf49e1 Mon Sep 17 00:00:00 2001 From: Zhonghu Xu Date: Fri, 19 Jul 2024 11:57:13 +0800 Subject: [PATCH] Update Signed-off-by: Zhonghu Xu --- pkg/controller/bypass/bypass_controller.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/controller/bypass/bypass_controller.go b/pkg/controller/bypass/bypass_controller.go index 6a4cc2737..8c654555f 100644 --- a/pkg/controller/bypass/bypass_controller.go +++ b/pkg/controller/bypass/bypass_controller.go @@ -41,7 +41,6 @@ var ( ) const ( - KmeshAnnotation = "kmesh.net/redirection" SidecarAnnotation = "sidecar.istio.io/inject" ) @@ -239,7 +238,7 @@ func checkSidecar(client kubernetes.Interface, pod *corev1.Pod) (bool, error) { func isKmeshManaged(pod *corev1.Pod) bool { annotations := pod.Annotations if annotations != nil { - if value, ok := annotations[KmeshAnnotation]; ok && value == "enabled" { + if value, ok := annotations[constants.KmeshRedirectionAnnotation]; ok && value == "enabled" { return true } }