Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
Signed-off-by: Zhonghu Xu <xuzhonghu@huawei.com>
  • Loading branch information
hzxuzhonghu committed Jul 19, 2024
1 parent 71e3fa0 commit df1c32c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/controller/bypass/bypass_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ var (
)

const (
KmeshAnnotation = "kmesh.net/redirection"
SidecarAnnotation = "sidecar.istio.io/inject"
)

Expand Down Expand Up @@ -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
}
}
Expand Down

0 comments on commit df1c32c

Please sign in to comment.