Skip to content

Commit

Permalink
fix debug configz (alibaba#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlanni authored Jun 27, 2023
1 parent f327012 commit a561720
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions istio/1.12/patches/istio/20230627-debug-fix-configz.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff -Naur istio/pilot/pkg/xds/debug.go istio-new/pilot/pkg/xds/debug.go
--- istio/pilot/pkg/xds/debug.go 2023-06-27 14:08:00.000000000 +0800
+++ istio-new/pilot/pkg/xds/debug.go 2023-06-27 14:07:04.000000000 +0800
@@ -469,6 +469,11 @@
s.Env.IstioConfigStore.Schemas().ForEach(func(schema collection.Schema) bool {
cfg, _ := s.Env.IstioConfigStore.List(schema.Resource().GroupVersionKind(), "")
// Added by ingress
+ copied := make([]config.Config, len(cfg))
+ for i := range copied {
+ copied[i] = cfg[i].DeepCopy()
+ }
+ cfg = copied
switch schema.Resource().GroupVersionKind().String() {
case gvk.Gateway.String():
cfg = model.GatewayFilter(cfg)

0 comments on commit a561720

Please sign in to comment.