Skip to content

Commit

Permalink
optimize mcp cds (#1013)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlanni authored May 29, 2024
1 parent ed05da1 commit b00f79f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions istio/1.12/patches/istio/20240529-optimize-mcp-cds.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
diff -Naur istio/pilot/pkg/model/push_context.go istio-new/pilot/pkg/model/push_context.go
--- istio/pilot/pkg/model/push_context.go 2024-05-29 19:29:45.000000000 +0800
+++ istio-new/pilot/pkg/model/push_context.go 2024-05-29 19:11:03.000000000 +0800
@@ -769,6 +769,13 @@
for _, s := range svcs {
svcHost := string(s.Hostname)

+ // Added by ingress
+ if s.Attributes.Namespace == "mcp" {
+ gwSvcs = append(gwSvcs, s)
+ continue
+ }
+ // End added by ingress
+
if _, ok := hostsFromGateways[svcHost]; ok {
gwSvcs = append(gwSvcs, s)
}

0 comments on commit b00f79f

Please sign in to comment.