Skip to content

Commit 5ab6df7

Browse files
authored
fix logic in ShouldUpdateServiceTargets (#57908)
1 parent 423eb7c commit 5ab6df7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pilot/pkg/model/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ func (node *Proxy) SetGatewaysForProxy(ps *PushContext) {
560560
func (node *Proxy) ShouldUpdateServiceTargets(updates sets.Set[ConfigKey]) bool {
561561
// we only care for services which can actually select this proxy
562562
for config := range updates {
563-
if config.Kind == kind.ServiceEntry || config.Namespace == node.Metadata.Namespace {
563+
if config.Kind == kind.ServiceEntry && config.Namespace == node.Metadata.Namespace {
564564
return true
565565
}
566566
}

0 commit comments

Comments
 (0)